Creating Obstacles

Learn how to add walls as obstacles for the player.

The other key objective of Flappy Dragon is dodging obstacles. Let’s add walls to the game, with gaps that the dragon can fly through. Begin by adding another struct to the program:

Get hands-on with 1400+ tech skills courses.