A Ruby implementation of the classic Asteroids arcade game using the Gosu game library.
- Make sure you have Ruby installed (2.7 or later recommended)
- Install dependencies:
bundle install
- (Optional) Install Custom Font:
- Download the C&C Red Alert font from: https://www.dafont.com/c-c-red-alert-inet.font
- Extract the ZIP and copy
C&C Red Alert [INET].ttfto thefonts/directory - The game will automatically use the custom font if available, otherwise falls back to system font
Run the game with:
ruby main.rbOr use the font-checking launcher:
./start_with_font_check.sh- Left Arrow: Rotate ship left
- Right Arrow: Rotate ship right
- Up Arrow: Thrust forward
- Spacebar: Shoot bullets
- Escape: Quit game
- Destroy all asteroids to advance to the next level
- Large asteroids split into 2 medium asteroids when destroyed
- Medium asteroids split into 1 small asteroid when destroyed
- Small asteroids are destroyed completely
- Objects wrap around screen edges
- Every 60 seconds, an alien ship appears and shoots at you
- Avoid collision with asteroids and alien bullets
- Classic vector-style graphics
- Physics-based movement with inertia
- Screen wrapping
- Progressive difficulty
- Score system
- Lives system
- Asteroid splitting mechanics
- Alien ships with AI targeting
- Custom retro font support (C&C Red Alert style)
- Authentic vector-style graphics