Skip to content

Repository files navigation

Chicken Invaders

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.

🎥 Project Demo

Chicken.Invaders.mp4

(If the video preview doesn’t load, click the link to view the .mov directly.)

🎯️ Gameplay

  • 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.

💽 Repository Contents

  • 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.

🧰 Requirements

  • Python 3.7+
  • Pygame (install via pip)

🚀 Running the Game

  1. Clone the repository:
    git clone https://github.com/MatanGoldfarB/Chicken-Invaders  
    cd Chicken-Invaders  
  2. Install dependencies:
    pip install pygame  
  3. Run the game:
    python main.py  
  4. Use the arrow keys to move the ship and the spacebar to shoot.

📍 What You’ll Learn

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.

🛠 Future Improvements

  • Add scoring and high score tracking.
  • Introduce more enemy behaviors and levels.
  • Implement power-ups and upgrades.

💌 Contact

If you’re interested in discussing this project or have suggestions, feel free to reach out.

About

learning pygame

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages