/purescript-asteroids

Asteroids for a web browser, in PureScript

Primary LanguageHaskellMIT LicenseMIT

This is a browser-based version of the 1979 Atari arcade classic, implemented in PureScript written by Chris Waterson.

Chris Waterson's version hasn't been touched in a while and PureScript has changed a lot in the interem. I've updated it to work on with PureScript's compile psc version 0.8.5.

I've specified each library version precisely in the hope that this decreases the chances of bitrot. Builders from the future, please try to build this with psc version 0.8.5.

Development

In a terminal run:

$ pscid

Then in another terminal run:

$ python3 -m http.server

Then load URL http://localhost:8000/html/dev.html

Releasing

To build:

$ bower install
$ ./build.sh

To bundle:

$ ./bundle.sh

This will generate the file html/asteroids.js

Then just release all the files in html/ as a static site on your favourite host!

To test locally:

$ cd html
$ python3 -m http.server

Then go to URL http://localhost:8000