/basic-tetris

🇱 Tetris Game built with HTML, CSS and JS

Primary LanguageJavaScript

basic-tetris

Created a website with Vanilla Javascript, HTML and CSS on which you can play basic Tetris (for desktop).

Live Demo

Game screenshot

How it works

In order to play click on the Start/Pause button and complete lines by moving differently shaped pieces (tetrominoes), which descend onto the playing field using the arrow keys. The completed lines disappear and grant you 10 points, and you can proceed to fill the vacated spaces. The game ends when the playing field is filled.

Technologies

Javascript, HTML and CSS.

Why I've build this game?

I've followed the tutorial by Ania Kubów posted on freecodecamp.com.

Decided to build this game in order to practice manipulating the DOM by using pure JS. Besides practicing JS function it helped me visualize how this whole game is a big array and that I just need to manipulate it.

Design of the game

I've learned how some() and every() works and about keyCode() and this cool website keycode.info which gives you the code of any key you press.

Install and Play

git clone https://github.com/stefi23/basic-tetris.git
open the index.html
play