GithubHelp home page GithubHelp logo

simonlc / tetr.js Goto Github PK

View Code? Open in Web Editor NEW
93.0 10.0 75.0 145 KB

๐Ÿ•น๏ธ Tetris clone in HTML5 and JavaScript

Home Page: http://simon.lc/tetr.js

License: MIT License

JavaScript 83.42% CSS 11.15% HTML 5.43%
tetris game canvas

tetr.js's Introduction

Tetr.js

Default Controls:

Controls are configurable

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

mechanics and features

  • Tetris Guideline compliant
    • Random generator, first bag never spawns Z, S, or O piece first.
    • SRS
    • Hold
    • Piece preview
    • Ghost piece
  • Multiple block skins
  • Stack outline option
  • Configurable gravity
  • 60 FPS
  • DAS and DAS delay settings
  • Adaptable game size
  • Last game replay

tetr.js's People

Contributors

mhudaya avatar simonlc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tetr.js's Issues

Negative finesse?

On some piece drops the finesse count decreases, which sounds like something that shouldn't happen.

Steps to reproduce:

  1. Set ARR to a nonzero value (e.g. 1).
  2. Hold left in 40L mode.
  3. Without letting go, hard drop a bunch of pieces.
  4. The finesse counter will decrease by 1 or 2 for every piece that's dropped, resulting in something like -13 if you top out doing this.

Timer goes too fast.

Some chrome update has made the 40 lines timer go far faster than normal, at least 50%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.