Home

Awesome

Star Traveler - 1K JavaScript Demo

This is a demo for JS1024, July 2020. Final size is 1006 bytes. Tested in Firefox, Chrome, and Safari (desktop).

First place in 2D canvas category! (JS1024 Results - 2020)

JS1024 entry

Mountain flyby

How can I see it?

The demo can be seen live on the JS1024 website: Star Traveler (JS1024).

Alternatively, you can open the file final/demo.html in your browser. For now, you can download it from GitHub here: demo.html (right-click and “save link as”)

A recording is available on YouTube: Star Traveler (YouTube)

Building

You must first make sure the Git submodule (RegPack) is checked out, and the Yarn dependencies installed.

$ git submodule init
$ git submodule update
$ yarn install

You can build the demo with:

$ node ./build.mjs build

For an auto-reloading development server, run:

$ node ./build.mjs serve

Recording

You can record the demo using WSCapture.

$ wscapture

Then visit https://localhost:8080/record.html to capture a video.