WebAssembly Snake

Open-source WebAssembly projects categorized as Snake

WebAssembly Snake Projects

  • wasm-snake

    Classic Snake in direct WebAssembly

  • Project mention: Classic Snake in Direct WebAssembly Text | news.ycombinator.com | 2024-03-04

    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

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Index

Project Stars
1 wasm-snake 7

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