wasm-snake
wasmboy
wasm-snake | wasmboy | |
---|---|---|
2 | 3 | |
7 | 1,358 | |
- | - | |
7.7 | 0.0 | |
2 months ago | about 1 year ago | |
WebAssembly | WebAssembly | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wasm-snake
-
Classic Snake in Direct WebAssembly Text
All of the game graphics, state and logic are written in WebAssembly Text. The host environment (Javascript) is responsible for:
Game tick loop
User input
Providing characters "0123456789GAMEOVER" byte data on game startup
Blitting the pixel buffer to the display with WebGL2
The game uses 3 virtual pages of memory (64kb each) for a total of 192kb. Within those exist the pixel buffer contents, the characters data and snake positions. For more detailed breakdown you can check src/snake.wat.
The memory is shared between WASM and JS. On each game tick, the pixel buffer region of the memory is transferred to a WebGL2 texture, uploaded to the GPU and blitted to the screen.
For more info you can refer to the repo - https://github.com/gnikoloff/wasm-snake
wasmboy
- Any Gameboy step by step emulator?
-
Game Boy Wordle clone: How to compress 12972 five-letter words to 17871 bytes
Looks like you can try it out on this webassembly Gameboy emulator https://wasmboy.app/
-
Writing a Game Boy Emulator in OCaml
As u/yawaramin mentioned, unfortunately, there is no standard battle-tested way of compiling OCaml to WASM. If your goal is to try out WASM, Rust should be a pretty safe choice. There are existing Rust + WASM Game Boy emulators such as wasmboy and gopher-boy.
What are some alternatives?
gbemu - WebAssembly based Gameboy Emulator
gb-wordyl - A word game for the Nintendo Game Boy / Color, Analogue Pocket, Mega Duck
wordle-trie-packing - Wordle clones are everywhere, but who is thinking about the bandwidth?
roadroller - Roadroller: Flattens Your JavaScript Demo
vaporBoy - Gameboy / Gameboy Color Emulator PWA built with Preact. ⚛️ Powered by wasmBoy. 🎮Themed with VaporWave. 🌴🐬
wordle - Finding optimal play in the game of wordle
gopher-boy - :video_game: A Game Boy emulator written in Go
gem - A Gameboy Color emulator and debugger
owi - WebAssembly Swissknife
coffee-gb - Gameboy emulator in Java 8.
runno - Browser-based runtime for programming languages and WASI binaries.