Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 1.69 KB

README_EN.md

File metadata and controls

43 lines (38 loc) · 1.69 KB

tetris

  • 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)

Get started

  1. Native
cargo run
  1. 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

Screenshots

Game video: YouTube

main menu game playing game paused game over

Reference