Wrap-Up
Congratulations, you just wrote your first game using Rust. All of the basic elements of the original Flappy Bird are present, and you can even compete for high scores.
You have plenty of ways to improve Flappy Dragon. Here are some exercises to try:
-
Play with the gravity level, velocity changes, and game speed. Notice how different values can radically change the feel of the game.
-
See if you can add graphics for the walls and dragon.
-
Consider making the graphics bigger and the overall play area smaller to better match Flappy Bird.
-
Investigate bracket-lib’s “flexible console” and change the player coordinates to floating-point numbers for smoother movement.
-
Add color and visual flair to the menus.
-
Try animating the dragon.
A version of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access