wasm-snake

Classic Snake in direct WebAssembly (by gnikoloff)

Wasm-snake Alternatives

Similar projects and alternatives to wasm-snake based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better wasm-snake alternative or higher similarity.

wasm-snake reviews and mentions

Posts with mentions or reviews of wasm-snake. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-04.
  • Classic Snake in Direct WebAssembly Text
    2 projects | news.ycombinator.com | 4 Mar 2024
    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

Stats

Basic wasm-snake repo stats
2
7
7.7
about 2 months ago

The primary programming language of wasm-snake is WebAssembly.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com