Skip to content

AndreaAresu/python-game

Repository files navigation

Python Asteroids Game

This project is a simple Asteroids-style arcade game implemented in Python using the Pygame library. The player controls a spaceship, navigates through an asteroid field, and shoots asteroids to survive as long as possible.

Features

  • Player spaceship with rotation, movement, and shooting mechanics
  • Asteroid field with randomly spawning asteroids
  • Collision detection between player, asteroids, and shots
  • Cooldown system for shooting
  • Game state and event logging

Controls

  • W: Move forward
  • S: Move backward
  • A: Rotate left
  • D: Rotate right
  • Space: Shoot

Requirements

  • Python 3.10+
  • Pygame
  • (Optional) uv for running the game

Getting Started

  1. Install dependencies:
    pip install pygame
    Or, if using uv:
    uv pip install pygame
  2. Run the game:
    python main.py
    Or, if using uv:
    uv run main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages