Shoot or Die is an arcade-style 2D shooter game developed using Pygame. In this game, you control a plane to avoid enemy missiles and shoot them down before they hit you. Your health decreases if you are hit by enemies, and your goal is to survive as long as possible.
The game starts with a menu screen. Press SPACE to start the game. Control a plane that shoots bullets to destroy incoming enemy missiles. The game features a health bar, and each time an enemy hits your plane, you lose health. The game ends when your health reaches zero, at which point you return to the start menu.
W: Move the plane up. S: Move the plane down. SPACE: Shoot bullets. ESC: Quit the game.
-
Images:
-
plane.png: The player's plane.
-
missile.png: Enemy missiles.
-
bullets.png: The bullets fired by the player's plane.
-
background2.jpeg: The main game background.
-
explosion.jpeg: The sprite sheet used for explosions.
-
startmenu_background.png: The start menu background.
- startmenu_sound.mp3: Background music for the start menu.
- shootsound.mp3: The sound of bullets being fired.
The game features background music in the start menu and sound effects when bullets are fired. Ensure that the sounds folder is correctly placed in the project directory.
This project is open source. Feel free to modify and share it as you like!
Make sure the assets (images and sounds) are stored in the respective folders (images/ and sounds/) as the game loads them dynamically. The health bar is displayed on the top-left of the screen and decreases as your plane gets hit. The game has a simple wave-based enemy spawn system, increasing the challenge over time. Enjoy the game!