This is a simple space-themed game built using Python and Pygame. The player controls a spaceship and must navigate through obstacles while collecting points.
- Player-controlled spaceship
- Randomly generated obstacles
- Score tracking
- Sound effects
-
Make sure you have Python installed. You can download it from python.org.
-
Install Pygame by running the following command in your terminal or command prompt:
pip install pygame -
Clone this repository:
git clone https://github.com/yourusername/python-space-game.git -
Navigate to the project directory:
cd python-space-game -
Run the game:
python main.py
- Use the arrow keys to move the spaceship.
- Press the spacebar to shoot.
- Dodge obstacles while collecting points.
- The game ends if the spaceship collides with an obstacle.
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository
- Create a new branch (
git checkout -b feature/yourfeature) - Make your changes
- Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin feature/yourfeature) - Create a new Pull Request
This project is licensed under the MIT License.
If you have any questions or suggestions, feel free to contact me:
- Call/Whatsapp: 263774603865
- Email: nobytechy@gmail.com
- GitHub:https://github.com/nobytechy
