Skip to content

Cumbria/asteroids

Repository files navigation

Asteroids (StressFree Gaming)

Classic Asteroids-style arcade game implemented in Python using Pygame.

Motivation

Teach myself Python after not using it since College. The language itself is very straightforward. It didn't take me long to adapt from JS and C# back to Python. I enjoyed getting to grips with this "old friend."

Quick Start

Requirements

Run the game:

python main.py

The game entrypoint is main.main.

Usage / Controls

  • W / S — thrust forward / reverse
  • A / D — rotate left / right
  • Space — fire

Features

  • Simple physics-based movement and rotation
  • Multiple asteroid sizes and splitting behaviour
  • Shots with rainbow colours
  • Starfield background with parallax + twinkle
  • Score tracking and high score persistence
  • Lightweight event/state logging for debugging

Key behaviors are implemented in:

Files in this repository

Development notes

Tuning

Common constants are in constants.py (player speed, turn speed, spawn rate, radii).

Contributing

  • Fixes, improvements and bug reports via issues and pull requests.
  • No other contributors.

License

There is no license for this repo. Feel free to play around.

About

Boot.dev tutorial - play Asteroids with Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages