Tetris implemented in rust and exported as wasm! Currently has most of the basic functionality you can expect from Tetris, bugs included!
A live demo can be found here!
You will need wasm-pack and npm Project is built mainly in windows, but it works on linux too!
git clone git@github.com:Avokadoen/tetris_wasm.git
cd ./tetris-wasm
wasm-pack build
cd ./www
npm install
npm run start (to change port: -- --port 8008)
Thanks to leudz for fixing my ugly c-style loops and recommending some lint tools. See #17