Skip to content

Tetris implemented in rust and targetting wasm

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

Avokadoen/tetris_wasm

Repository files navigation

WASM Tetris

Tetris implemented in rust and exported as wasm! Currently has most of the basic functionality you can expect from Tetris, bugs included!

Tetris gameplay

prerequisite

You will need wasm-pack and npm Project is built mainly in windows, but it works on linux too!

How do to build and run 🚀

  • clone the repository i.e ssh:
git clone [email protected]:Avokadoen/tetris_wasm.git
  • navigate to project root
cd ./tetris-wasm
  • run wasm-pack
wasm-pack build
  • navigate to ./www from root
cd ./www
  • install dependencies through npm
npm install
  • run npm to host local server (make sure you are not hosting anything on 8080, or change port)
npm run start (to change port: -- --port 8008)
  • go to localhost:8080 in your favourite browser 🎉

About

Tetris implemented in rust and targetting wasm

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •