The Premise

Design a fun arcade game in the browser, using only HTML canvas and vanilla JavaScript.

My Design

I started by building a basic, 2D gravity simulator. I apply physics to the player every tick based on the surrounding planets. From there, I wrote a O(n) algorithm to efficiently predict and simulate the player position n ticks in the future, and added a rendering loop.

To turn the concept into a game, I added a player, controls, and game-play features such as time control. I polished it off with a customizable control scheme, flushed out menus and high-scores, and finally a ray-tracing rendering engine to act as a first person camera.

How to Play

Things to Try