Skip to content

IOleg-crypto/spaceship_battle_game

Repository files navigation

🚀 Spaceship Battle Game

Spaceship Battle Game is an arcade game created with Python using the Pygame library. Control a spaceship, avoid obstacles, and destroy enemies with projectiles.


📦 Requirements


⚙️ Installation

  1. Clone the repository:

    git clone https://github.com/IOleg-crypto/spaceship_battle_game.git
  2. Navigate to the project directory:

    cd spaceship_battle_game
  3. Install dependencies:

    pip install -r requirements.txt

▶️ Running the Game

python main.py

🎮 Controls

Key Action
⬅️ ➡️ Move left / right
⬆️ ⬇️ Move up / down
Space Shoot projectile

🗂️ Project Structure

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

📸 Screenshot

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

2025-05-21-120936.png


🤝 Contribution

Any improvements, ideas, or bug fixes are welcome!

  1. Fork the project
  2. Create a new branch (git checkout -b feature-name)
  3. Make your changes
  4. Submit a Pull Request

📄 License

This project is open source and distributed under the MIT License. See the LICENSE file for details.


📬 Contact

If you have any questions or suggestions — open an issue or write on GitHub.

About

Spaceship game made on Pygame and Tkinter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages