Welcome to the Spaceship Adventure Game! Navigate your spaceship to collect stars and avoid asteroids. Earn points for every star you collect. The game ends when you collide with an asteroid. Good luck!
- Python 3.6 or later
tkinter
(usually included with Python)Pillow
library (to install, usepip install pillow
)
-
Clone the Repository
git clone https://github.com/ShenalSen/Spaceship-Game---byCodingcat.git cd spaceship-adventure-game
-
Install the Pillow library
pip install pillow
-
Ensure your directory structure looks like this:
spaceship-adventure-game/ โโโ main.py โโโ images/ โโโ background.png โโโ spaceship.png โโโ star.png โโโ asteroid.png
- Navigate to the project directory.
- Run the game using Python:
python main.py
- Start the Game: When you run the game, an intro message will prompt you to enter your username. If you leave it blank, your username will be "Player".
- Control the Spaceship:
- Use the Left Arrow key to move the spaceship left.
- Use the Right Arrow key to move the spaceship right.
- Collect Stars: Each star you collect adds 10 points to your score.
- Avoid Asteroids: The game ends if your spaceship collides with an asteroid.
- main.py: Contains the entire game logic and UI setup using
tkinter
andPillow
for image handling. - images/: Directory containing all the required images for the game.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Description of your feature or fix"
- Push to the branch:
git push origin feature-name
- Create a pull request detailing your changes.
For any questions or issues, please contact shenal.unc555@gmail.com or Contact@shenal.com
Enjoy the game!
ERD 45656642734324