Home

Awesome

Tetris

A simple tetris clone written in zig programming language.

Demo

https://raulgrell.github.io/tetris/

Controls

Dependencies

Desktop

WebGL

Building and Running

Desktop

Run the following command from the project root:

zig build

Webgl

Open the index.html file to run. You can also run a local http live server on the project root so the game restarts whenever you make a change. If you make changes to the zig code, rebuild the wasm binary by running the following command from the project root:

zig build-exe -target wasm32-freestanding --release-small src/main_web.zig