Welcome to Galactic Defender, a high-octane space shooter game developed in Python! This project demonstrates the power of Object-Oriented Programming (OOP) and real-time game loops using the pygame library.
- Dynamic Gameplay: Enemies spawn at random locations with varying speeds.
- Weapon System: Rapid-fire laser system using collision detection.
- Advanced Architecture: Organized into 5 modular files for clean, professional code.
- High Performance: Runs at 60 FPS for smooth movement.
- Python 3.x
- Pygame Engine
main.py: The heart of the game. Handles the game loop and event processing.player.py: Contains the logic for the hero spaceship movement.enemy.py: Manages the AI for falling enemy blocks.bullet.py: Handles the physics and lifetime of projectiles.settings.py: Central configuration for colors, speed, and screen size.
- Install Pygame:
pip install pygame