Asteroids
About

This is a simple enough clone of asteroids, written in C. As games go, it’s one of the funner ones I’ve written, and the code isnt (too) ugly. It contains all the features you’d associate with asteroids, such as invulnerability, momentum/physics, damage, lives, warping etc.
This was originally written as an implementation of one of Lancaster Uni’s first year assignments, largely in their labs.
Download
Download from the git page.
Use
There is a makefile for compilation. Once compiled, simply run as.
There’s a few subtleties about the game:
- The gun has recoil
- Angular momentum can make manouvering difficult
- Larger asteroids hurt more when colliding
Controls
- Up — Accelerate
- Down — Warp to a random location (limited uses)
- Left/Right — Turn
- P — Pause the game
- +/- — Zoom in/out
- ^C — Exit (catches signal)