A small demo 2D video game running in a web browser powered by WebAssembly.
Disclaimer: This was never intented to be a real game. The purpose is to demonstrate programming games from scratch in AssemblyScript.
📖 Read the whole tutorial on my blog.
Check out alternative technical approaches:
- Control of the game rendering loop within Wasm (blog post)
- Automatic inlining of image assets
- Rendering and game controls in a text terminal
npm install
npm run asbuild:optimized -- --memoryBase 40000
npx ws -p 1234
Open http://127.0.0.1:1234
in a web browser.
Play online at https://ttulka.github.io/breadcrumblost/
Desktop only.
It is easy for children to follow breadcrumbs to get back home. But what about the poor breadcrumbs?!
Help a lost breadcrumb find its way home without getting wet or eaten.
- UP jump
- RIGHT go right
- LEFT go left
node image2array.js assets/image.png > assembly/assets/image.ts
Assets taken from https://kenney.nl/assets/pixel-platformer