Play the game on Itch.io: https://twobitcode.itch.io/flappy-penguin
Flappy Bird is a simple yet addictive mobile game where the player controls a bird ๐ฆ that must navigate through pipes ๐๏ธ without hitting them. The goal is to get the highest score possible by passing through as many pipes as you can.
-
Easy-to-learn gameplay: Tap to make the bird fly ๐ฆ , avoid pipes ๐ง.
-
Endless gameplay: The game continues until the bird collides with an obstacle ๐.
-
Score tracking: Your score increases as you pass each pipe ๐ฏ.
-
Responsive controls: Tap the screen to make the bird flap ๐ฆโฌ๏ธ.
-
Creating pipe spawner that generates pipes ๐ง. - each pipe is constructed from 3 parts, the top, bottom- sprites with collider component. And the middle, that is mainly a collider with a tag, and trigger so whenever the penguin comes in contact (aka pass through), the score would update. Once the pipes are out of our vision they get destroyed as to not fill the memory, and are generated at different heights for more interest. https://github.com/TwoBitCode/flappy-penguin/blob/main/Assets/Scripts/SpawnPipe.cs
-
Creating penguin object ๐ง that is the bird in this game, that flies when hitting the space key. the penguin has a rigid body and a movement script, when it comes in contact with the pipes the game is over and you can restart. -https://github.com/TwoBitCode/flappy-penguin/blob/main/Assets/Scripts/ObjectMover.cs
-
Adding score counter ๐. -
-
The score is essential in this game since it helps create the interest. The score goes up by trigger every time the bird and middle pipe come in contact.
-
https://github.com/TwoBitCode/flappy-penguin/blob/main/Assets/Scripts/Manager.cs
-
Since the emphasis of the application was on the core processes, the game is not closed. (for example if the penguin does not hit the pipe and just falls down, there is no restart button, I didn't have time to make boundaries for the game).
-
Hit Space key โฃ to make the bird flap and rise ๐ค๏ธ.
-
Avoid pipes: The bird must pass through gaps between the pipes without hitting them ๐งโ.
- Unity game engine ๐ฎ.
- Tap the space bar โฃ to make the bird flap and rise ๐ค๏ธ.
- Avoid hitting the pipes ๐ง or the ground ๐.
- Each time the bird passes through a pair of pipes, your score increases ๐.
- The game ends when the bird collides with a pipe ๐ง or the ground ๐.
I used different guides to implement the mini game.
- CHATGPT
- youtube tutorials