A basic game of tetris.
There is a score but numbers added to the score were randomly decided so it’s far from perfect.
Colors are easily customisable, from line 23 to line 38 you can change the rgb values (exemple : change the “x” “y” “z” values in “(x,y,z)” next to “#background” to change the background color)
How to play:
Up arrow to rotate your piece.
Left arrow and right arrow to move your piece.
Down arrow to make the piece fall faster.
Shift key to make your piece fall instantly.
Alpha to pause
Upcoming pieces are shown on the top right.