Skip to content

TwoBitCode/flappy-penguin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Flappy Bird Game ๐Ÿฆ๐ŸŽฎ

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.

Features โœจ

  • 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 ๐Ÿฆโฌ†๏ธ.

Implementation ๐Ÿ› ๏ธ

  • 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).

Controls ๐ŸŽฎ

  • Hit Space key โฃ to make the bird flap and rise ๐ŸŒค๏ธ.

  • Avoid pipes: The bird must pass through gaps between the pipes without hitting them ๐ŸšงโŒ.

Technologies Used ๐Ÿ–ฅ๏ธ

  • Unity game engine ๐ŸŽฎ.

How to Play ๐ŸŽฎ

  1. Tap the space bar โฃ to make the bird flap and rise ๐ŸŒค๏ธ.
  2. Avoid hitting the pipes ๐Ÿšง or the ground ๐ŸŒ.
  3. Each time the bird passes through a pair of pipes, your score increases ๐Ÿ†.
  4. The game ends when the bird collides with a pipe ๐Ÿšง or the ground ๐ŸŒ.

source

I used different guides to implement the mini game.

  • CHATGPT
  • youtube tutorials

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages