A simple arcade-style shooting game built with Python and Pygame. Inspired by the classic “Chicken Invaders”, this project was created as a learning exercise to practice game development concepts such as sprite management, collision detection, animation, and event handling.
Chicken.Invaders.mp4
(If the video preview doesn’t load, click the link to view the .mov directly.)
- Control a rocket/ship at the bottom of the screen.
- Shoot bullets to eliminate waves of descending chickens.
- Avoid enemy eggs and projectiles; if the ship is hit, you lose a life.
- Sound effects for hits and explosions enhance the experience.
main.py– Entry point that initializes the game loop.classes.py– Defines game classes such as Player, Enemy, Bullet, and their behaviors.background.png,start-screen.png– Background images and menu screen.rocket.png,bullet.png,egg.png,enemy1.png,enemy2.png,enemy3.png,chicken.png– Sprite assets.chickenhit.wav,try.wav– Sound effects.
- Python 3.7+
- Pygame (install via pip)
- Clone the repository:
git clone https://github.com/MatanGoldfarB/Chicken-Invaders cd Chicken-Invaders - Install dependencies:
pip install pygame
- Run the game:
python main.py
- Use the arrow keys to move the ship and the spacebar to shoot.
This project showcases my understanding of:
- Game loops and frame-rate independent movement.
- Handling keyboard input and player controls.
- Managing multiple sprites and collision detection.
- Basic audio integration with Pygame.
- Add scoring and high score tracking.
- Introduce more enemy behaviors and levels.
- Implement power-ups and upgrades.
If you’re interested in discussing this project or have suggestions, feel free to reach out.