
Invaders
Story
Dashie: "This is my line"
Kion: "This is my line"
Concept




Program
- Loading Game Assets
- Load images for the player, enemies, bullets, 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 (arrow keys for movement, spacebar for shooting).
- Update the player's position.
- Update the enemy positions and behavior (moving side to side and down).
- Handle collision detection between bullets and enemies.
- Handle player's death when colliding with enemies or enemy bullets.
- Render the player, enemies, bullets, and background.
- Handling Enemy Movement
- Move enemies side to side within the game area.
- Move enemies down when reaching the edge of the screen.
- Speed up enemy movement as the game progresses.
- Handling Player Movement
- Move the player left and right within the game area.
- Handling Player Shooting
- Allow the player to shoot bullets upwards.
- Create and manage a bullet pool to reuse bullets.
- Ending the Game
- End the game when all enemies are destroyed or the player is defeated.
- Display a game over message.
- Scoring
- Keep track of and display the player's score.
- Increment the score for each enemy destroyed.
- Creating Success Screen
- Display a success message when all enemies are destroyed.
- Provide an option to restart the game.
