- Basic gameplay(random piece、piece rotation and move、clear full lines、scores)
- Game UI
- Game Audio
- Support pausing, resuming and restarting game
- Support web
- Display next piece
- Bag7 random algorithm
Play online: click here(Open with PC Chrome/Firefox/Edge)
- Native
cargo run
- WASM
rustup target install wasm32-unknown-unknown
cargo install wasm-server-runner
cargo run --target wasm32-unknown-unknown
cargo install wasm-bindgen-cli
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/tetris.wasm
Game video: YouTube