Skip to content

AnganSamadder/z-spin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Z-Spin Tetris

A Tetris game built with Phaser 3, TypeScript, and Rust WebAssembly.

Prerequisites

  • Node.js (v14+)
  • Rust (latest stable)
  • wasm-pack (cargo install wasm-pack)

Project Structure

  • engine/ - Rust code for the WASM engine
  • tetris/ - TypeScript/Phaser game code

Setup and Run

  1. Install dependencies:
cd tetris
npm install
  1. Build the WASM module:
cd engine
./build.sh

Or use the npm script:

cd tetris
npm run build:wasm
  1. Build the game:
cd tetris
npm run build
  1. Start the server:
cd tetris
npm start
  1. Open your browser at http://localhost:3000

Development

For development with hot reloading:

cd tetris
npm run dev

Features

  • Standard Tetris gameplay in JavaScript
  • Optional WASM engine (toggle with the "Play WASM Engine" button)
  • Customizable controls and settings

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages