Samples
Play in the browser
Three games export with cargo xtask dist --web to a static folder: a page, a loader, wasm, and an asset pack. Click the game to give it the keyboard. Sound starts on the first click, key, or tap. WebGPU where the browser has it, WebGL2 otherwise.
-
games/platformer
Platformer
Walk, jump, push crates, take the coins, reach the goal.
A D or arrows · Space, W, or up to jump · Escape pauses
Play platformer -
games/breakout
Breakout
Keep the ball in play and clear the bricks.
A D or arrows move the paddle
Play breakout -
games/dodge
Dodge
Stay off the falling rocks for as long as you can.
WASD or arrows
Play dodge