Asteroids is a guided Python project from boot.dev
Find a file
2024-10-09 14:12:32 +01:00
.gitignore feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
asteroid.py feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
asteroidfield.py feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
circleshape.py feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
constants.py feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
main.py feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
player.py feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
README.md feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
requirements.txt feat: add code for asteroids game 2024-10-09 14:12:32 +01:00
shot.py feat: add code for asteroids game 2024-10-09 14:12:32 +01:00

Asteroids

Asteroids is a very simple asteroids game developed with Python and Pygame.

Repository mirrors

Requirements

To run the application you'll need a recent version of Python 3. This application was built and tested with Python 3.12.3.

You'll also need to install pygame. The installation instructions are below.

How to run the game

  • Clone this repository to your local machine.

    git clone https://github.com/dananglin/asteroids.git
    cd asteroids
    
  • (Optional) create a virtual environment and activate it.

    python3 -m venv venv
    source venv/bin/activate
    
  • Install the dependencies listed in requirements.txt.

    pip3 install -r requirements.txt
    
  • Launch the game.

    python3 main.py