Skip to content

A simple implementation of the game Tetris using Vanilla Javascript, HTML, and CSS.

License

Notifications You must be signed in to change notification settings

Khusyasy/tetris-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tetris-js

Tetris Gameplay 1

Tetris Gameplay 2

A simple implementation of the game Tetris using Vanilla Javascript, HTML, and CSS.

  • Super Rotation System (SRS)
  • Lock Delay
  • Customizable keybinds
  • Customizable game parameters
  • ARR and DAS

How to Play

Go to https://khusyasy.com/tetris-js/ to play the game.

You can also play locally, clone this repository and opening index.html in your browser or by using npx serve . in the project directory.

Default Controls

Action Name Keybind
Move Left mv_left a
Move Right mv_right d
Soft Drop softdrop w
Hard Drop harddrop s
Rotate CCW rot_ccw
Rotate CW rot_cw
Rotate 180 rot_180
Hold hold Shift

You can open the keybinds menu by clicking the Change Keybinds button on the bottom of the screen.

Open Keybinds Menu

Change the Keybinds mode to Custom to change the keybinds. And click on the keybinds you want to change, then press the key you want to bind to that action.

Change Keybinds

The keybinds will be saved to your browser's local storage. Even when you change it back to Default, the keybinds will still be saved.

Custom Game Parameters

Advanced players should be familiar.

Custom Game Parameters

About

A simple implementation of the game Tetris using Vanilla Javascript, HTML, and CSS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published