Clone of the OG iphone game.
-
It is a clone of the famous iPhone game, where we control a Bird game object that moves constantly forward (x-axis). We navigate a map that features obstacles (Pipes) and spaces, and we must find our way through them to reach the destination.
-
The game loop, the “Pipes,” is a prefab object that is generated with random heights in a given range.
-
There is a 2d box collider present in the space between two pipes. When triggered by the Bird game object, it increases the score.
-
The Pipes move from right to left on the screen. Once the Pipe prefab object is out of camera focus, it gets destroyed.
-
There is a UI menu that has a “play again” button that is set Active when the Bird collides with the Pipes. It stops taking input to control the Bird.