Skip to content
forked from farteryhr/tetr.js

Tetris clone in HTML5 and JavaScript

Notifications You must be signed in to change notification settings

TetrisAI/tetr.js

 
 

Repository files navigation

#tetr.js

Default Controls:

  • Rotate Left: Z
  • Rotate 180: X
  • Rotate Right: C and Up
  • Hold: Shift
  • Hard Drop: Space
  • Shift Left: Left Arrow
  • Shift Right: Right Arrow
  • Restart: R

Current mechanics and features

  • Tetris Guideline compliant
    • Colors
    • Random generator, first bag never spawns Z, S, or O piece first.
    • SRS
    • Gameover by lock out or block out
    • Hold
    • Piece preview
  • Game statistics like PPM, Time, etc.
  • Configurable gravity
  • 60 FPS
  • Fast code and drawing
  • DAS and DAS delay settings
  • Configurable controls
  • Adjustable game size
  • Ghost piece color and transparency

Planned future mechanics and features

  • Responsive and mobile design
  • More game modes (ultra, etc)
  • Training mode, 2step trainer, patterns, etc
  • Replays
  • Stats logging
  • Leaderboards
  • Sound effects
  • T-spin and twist detection
  • Custom mino skins (or at least a selection)

TODO misc

  • Preload das preservation during countdown
  • Help page
  • Feedback button
  • Include license
  • Pause, and pause game while in menu

About

Tetris clone in HTML5 and JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.3%
  • CSS 13.7%
  • HTML 5.0%