A Tetris game built with Phaser 3, TypeScript, and Rust WebAssembly.
- Node.js (v14+)
- Rust (latest stable)
- wasm-pack (
cargo install wasm-pack)
engine/- Rust code for the WASM enginetetris/- TypeScript/Phaser game code
- Install dependencies:
cd tetris
npm install- Build the WASM module:
cd engine
./build.shOr use the npm script:
cd tetris
npm run build:wasm- Build the game:
cd tetris
npm run build- Start the server:
cd tetris
npm start- Open your browser at
http://localhost:3000
For development with hot reloading:
cd tetris
npm run dev- Standard Tetris gameplay in JavaScript
- Optional WASM engine (toggle with the "Play WASM Engine" button)
- Customizable controls and settings
MIT