A complete, playable Tetris clone built by Sullen Studio — dark theme, neon tetrominoes, guideline-style mechanics. Runs in the browser on desktop and mobile.
Play it live: https://sullenstudio.github.io/tetris/
- 10×20 playfield with visible grid, ghost piece, and hold piece
- 7-bag randomizer with a 3-piece next queue
- Guideline scoring: Single / Double / Triple / Tetris (100/300/500/800 × level), soft/hard drop points
- Levels speed up every 10 lines with guideline gravity curve
- Super rotation with basic wall kicks
- Line-clear flash + particle effects (PixiJS)
- Menu, pause, and game-over screens with persistent best score (localStorage)
- Portrait-friendly layout, letterboxed scaling, crisp rendering on high-DPI screens
- Touch support: on-screen buttons + swipe gestures
| Input | Action |
|---|---|
| ← / → | Move piece |
| ↓ | Soft drop |
| ↑ / X | Rotate clockwise |
| Z | Rotate counter-clockwise |
| Space | Hard drop |
| C / Shift | Hold piece |
| P | Pause |
| Enter | Start / restart |
Touch: drag left/right to move, drag down to soft drop, quick flick down to hard drop, tap to rotate — or use the on-screen buttons.
npm install
npm run devnpm run build # outputs to dist/
npm run preview # serve the production build locallyPushes to main automatically build and deploy to GitHub Pages via the workflow in .github/workflows/pages.yml.
MIT — see LICENSE.