Build a native mobile game that replicates the core mechanics of Flappy Bird.
The game should include the following features:
1. **Game Canvas:** A side-scrolling game view.
2. **Player Character (Bird):**
* A bird character is present on the screen.
* Tapping the screen makes the bird "flap" upwards with a small burst of momentum.
* Gravity constantly pulls the bird downwards.
3. **Obstacles (Pipes):**
* Pairs of pipes (one from the top, one from the bottom) continuously scroll from the right side of the screen to the left.
* Each pair of pipes has a fixed vertical gap between them for the bird to fly through. The vertical position of this gap should be randomized for each new pair of pipes.
4. **Scoring:**
* The player's score starts at 0.
* The score increases by one for each pair of pipes the bird successfully passes through.
* The current score should be clearly visible on the screen during gameplay.
5. **Game Over Condition:**
* The game ends if the bird collides with any pipe or touches the ground.
* When the game ends, display a "Game Over" screen that shows the final score and a "Restart" button.
6. **Game Flow:**
* The game starts on a simple screen with a "Play" button.
* Pressing "Play" starts the game.
* After a game over, pressing "Restart" should immediately start a new game.
Build a native mobile game that replicates the core mechanics of Flappy Bird.
The game should include the following features:
1. **Game Canvas:** A side-scrolling game view.
2. **Player Character (...