https://github.com/bborbe/tetrics
https://github.com/bborbe/tetrics
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bborbe/tetrics
- Owner: bborbe
- Created: 2025-12-25T21:16:32.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-12-25T21:40:01.000Z (7 months ago)
- Last Synced: 2025-12-27T08:11:49.444Z (7 months ago)
- Language: HTML
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tetris
Classic Tetris game implemented in vanilla JavaScript.
**Play online:** https://bborbe.github.io/tetrics/
## Features
- Standard 7 tetromino pieces (I, O, T, S, Z, J, L)
- Score tracking with level progression
- Next piece preview
- Pause functionality
- Auto-save/load game state
- Responsive controls
## How to Play
Open `index.html` in browser.
### Controls
- `←` `→` - Move piece left/right
- `↑` - Rotate piece
- `↓` - Soft drop
- `Space` - Hard drop
- `P`/`Esc` - Pause
- `R` - Restart
## Gameplay
- Clear lines to score points
- Level increases every 10 lines cleared
- Game speeds up with each level
- Score multiplier increases with level
### Scoring
- 1 line: 100 × level
- 2 lines: 300 × level
- 3 lines: 500 × level
- 4 lines: 800 × level
- Hard drop: +2 per row
## Technical
- Pure JavaScript (no dependencies)
- LocalStorage for game persistence
- Modular architecture (Board, GameState, Renderer, InputHandler)
- 10×20 grid, 30px cells