Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Space Fight A 2D arcade-style spaceship game developed with the Pygame library. Technologies Python 3.10+: Programming language. Pygame: Library for creating games. Rembg: Library for removing background images (optional). Pillow (PIL): Library for manipulating images. How to Run the Game To run this game, you need Python installed. Using a virtual environment is recommended. Clone the repository or download the code. Install the dependencies: pip install -r requirements.txt (If you don't have a requirements.txt file, you can install them manually: pip install pygame rembg pillow) Run the game: python main.py Project Structure main.py: The main file with all the game logic. assets/: Contains the original images, sounds, and other game resources. processed_assets/: Automatically generated folder with processed images (background removed, resized). scores.db: SQLite database for saving high scores. dist/: Folder generated by PyInstaller that contains the game's executable file. Assets 2D spaceship shooter with a high scoreboard. Scoring and time system. Menu and "Game Over" screens with high scores saved in an SQLite database. Collision detection between projectiles and enemies. Background audio for the menu and gameplay. Support for executable files (.exe) using PyInstaller, with path processing for assets. ### Controls Create a simple list of game controls. ### Controls * **Player 1:** * **Move:** Arrow keys (↑, ↓, ←, →) * **Shoot:** Space bar * **Player 2:** * **Move:** W, A, S, D keys * **Shoot:** F key