Hands-on Rust: restarting flappy dragon missing score/obstacle

Title: Hands-on Rust: restarting flappy dragon missing score/obstacle (page 67)

The State::restart() method needs updating to reset the score and recreate the first obstacle. This is in the downloadable source code but isn’t covered in the text. Apart from this, I managed to recreate Flappy Dragon based off of the book by following along.

1 Like

Thank you! I’ve added it to the issue tracker. I’m not working today (US Thanksgiving), so I’ll take a proper look tomorrow. It should be resolved in beta 3.

1 Like