Skip to content

dh1542/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tetris (Vanilla JavaScript)

A small browser-based Tetris clone built with vanilla JavaScript.
Created to practice game logic, state management, and canvas rendering.

๐ŸŽฎ Play

You can play it here:
https://dh1542.github.io/tetris/

๐Ÿ•น Controls

  • โฌ…๏ธ Arrow Left โ€” Move left
  • โžก๏ธ Arrow Right โ€” Move right
  • โฌ†๏ธ Arrow Up โ€” Rotate
  • โฌ‡๏ธ Arrow Down โ€” Soft drop
  • โŽ Enter โ€” Restart after game over

๐Ÿ›  Tech-Stack

  • Vanilla JavaScript (ES Modules)
  • HTML5 Canvas
  • CSS

๐Ÿš€ Run locally

Just open index.html in your browser
or use a simple local server:

python3 -m http.server

About

A small Tetris clone built with vanilla JavaScript to practice game logic and strengthen core JS skills.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors