June 2021
Beginner
344 pages
8h 9m
English
The previous chapters set down a solid foundation for installing and working with Rust. This chapter puts that knowledge to use and walks you through developing your first game, Flappy Dragon—a Flappy Bird clone.[34]
You’ll start by adding a game engine to your project dependencies, which you’ll use to implement your game loop. You’ll then test the game loop with a simple “Hello” program. From there, you’ll implement basic program flow with a state machine, add a player, simulate gravity, and make the player’s dragon flap its wings. Finally, you’ll add obstacles and scorekeeping to the game. By the end of this chapter, you’ll have a complete game—completely built in Rust.
Before you begin building Flappy ...
Read now
Unlock full access