Project icon

Tetris JS

A basic browser-based Tetris clone written in vanilla JavaScript.

JavaScript
Try it Live

A basic browser-based Tetris clone written in vanilla JavaScript. The player can move the falling pieces with the arrow keys, rotate them with the up arrow, and drop them with the spacebar. The most interesting challenge I faced in building this project was projecting "ghost" verions of the tetrominoes to show where the pieces would fall without causing weird collision issues or duplicating large chunks of code.