Flappy Bird
Story
Dashie: "This is my line"
Kion: "This is my line"
Concept
Program
- Loading Game Assets
- Load images for the bird, pipes, and background.
- Set up texture loading with SDL.
- Creating the Title Screen
- Display a title graphic.
- Implement a start button.
- Implementing the Game Loop
- Handle user input (spacebar for bird jump).
- Update the bird's position and velocity based on gravity and user input.
- Move pipes horizontally towards the bird.
- Handle collision detection between the bird and pipes or ground.
- Render the bird, pipes, and background.
- Handling Bird Movement
- Move the bird upwards when the spacebar is pressed.
- Apply gravity to the bird to simulate falling.
- Implementing Pipe Movement
- Move pipes from right to left towards the bird.
- Randomly generate pipe heights.
- Reposition pipes when they move off-screen.
- Ending the Game
- End the game when the bird collides with a pipe or the ground.
- Display a game over message.
- Scoring
- Keep track of and display the player's score (based on number of pipes passed).
- Creating Success Screen
- Display a success message when the player achieves a certain score.
- Provide an option to restart the game.