grav-racer
About
Up arrow: throttle
Left/Right arrow: move side to side
Try to reach the finish line as quickly as possible.
When the game ends, you have to refresh the page to restart. I'll fix that as soon as I can though.
Obviously this is very much still a work in progress. This is all I had the time to get finished, but I will continue to update it.
It is written in Javascript and Rust (using WebAssembly). The Rust/WebAssembly side handles the game logic, and the js side handles the rendering, using an off-screen CanvasRenderingContext2D to draw the frame and then sending the context to an on-screen WebGL context that uses a simple shader to render the scene in 64 x 64 resolution.
For WebGL, I used regl, a functional WebGL framework.
I also used wasm-bindgen to compile from Rust to WebAssembly.
To-do (may or may not be done before the end of lowrez game jam)
- Menus, save and display best times
- Sound FX and music
- Engine flame animation
- Different/longer levels