Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

twlatl/asteroids

Open more actions menu

Repository files navigation

Asteroids Game

A Ruby implementation of the classic Asteroids arcade game using the Gosu game library.

Installation

  1. Make sure you have Ruby installed (2.7 or later recommended)
  2. Install dependencies:
    bundle install
  3. (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].ttf to the fonts/ directory
    • The game will automatically use the custom font if available, otherwise falls back to system font

How to Play

Run the game with:

ruby main.rb

Or use the font-checking launcher:

./start_with_font_check.sh

Controls

  • Left Arrow: Rotate ship left
  • Right Arrow: Rotate ship right
  • Up Arrow: Thrust forward
  • Spacebar: Shoot bullets
  • Escape: Quit game

Gameplay

  • 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

Game Features

  • 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

About

The Atari game written in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.