Spaceship Battle Game is an arcade game created with Python using the Pygame library. Control a spaceship, avoid obstacles, and destroy enemies with projectiles.
- Python 3.7+
- Pygame
-
Clone the repository:
git clone https://github.com/IOleg-crypto/spaceship_battle_game.git
-
Navigate to the project directory:
cd spaceship_battle_game
-
Install dependencies:
pip install -r requirements.txt
python main.py
Key | Action |
---|---|
⬅️ ➡️ | Move left / right |
⬆️ ⬇️ | Move up / down |
Space | Shoot projectile |
spaceship_battle_game/
├── assets/ # Images, sounds, fonts
├── src/ # Main game logic
├── main.py # Entry point
├── ResolutionException.py # Exception to prevent user enter wrong resolution
├── requirements.txt # Dependencies
└── README.md # Documentation
Game also supports config.cfg
[config]
version = 1
[window]
width = 1280
height = 720
fullscreen = True
[sound]
muted = False
volume = 1.0
[game]
difficulty = Hard
[player]
spaceship = ...(your path)
and Console just click 2
Any improvements, ideas, or bug fixes are welcome!
- Fork the project
- Create a new branch (
git checkout -b feature-name
) - Make your changes
- Submit a Pull Request
This project is open source and distributed under the MIT License. See the LICENSE file for details.
If you have any questions or suggestions — open an issue or write on GitHub.