Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 2.44 KB

README.md

File metadata and controls

73 lines (48 loc) · 2.44 KB

Asteroids Go Report Card

A modern implementation (in Golang) of the classic arcade game.

screenshot

The game can be compiled natively and run locally, or cross-compiled into WASM and deployed to GitHub Pages. Every time a commit is made on the main branch, a GitHub action deploys a fresh version.

Running in a browser

You can play the game online at https://www.destructuring-bind.org/asteroids. A browser with WebGL support is required. It will run on smartphones and iPads, however there is no support yet for non-keyboard input.

Running locally

Install the go binary (instructions here), and:

go run github.com/rm-hull/asteroids@latest

Keyboard Controls

LEFT-SHIFT or SPACE : Fire

or : Rotate left & right

: Thrust

F : Toggle fullscreen

P : Toggle pause

Q : Quit

R : Restart

Strategy

Pick off the asteroids taking care to mop up exploded fragments. After a while an alien saucer may appear, and will start aiming at you. As you progress through the levels, the asteroid belt gets more dense, and the alien's shooting accuracy improves. On starting each level, you will have a few seconds of immunity to get yourself out of danger.

There is a "god-mode" which gives you immortality and your weapon is hugely upgraded from the normal salvo of 3 shots. You'll have to browse the source code to find out how to activate it.

TODO

  • Hyperspace
  • Extra lives at every 10,000
  • (Persistent) High score
  • Score wraps round at 100,000 (like the original)
  • Support different sprite sheets
  • Code refactoring / reorganisation / tests
  • Custom key mapppings
  • Touchscreen support

KNOWN ISSUES

  • Fix sound distortion

References & Attribution