In this lesson, you will learn about the Tetris game board and style it with an 80's feel.
Project structure
It’s good practice to split code into different files even if the project is not that big:
constants.js
is where we put the configurations and rules of the game.board.js
is for board logic.piece.js
is for piece logic.main.js
has code to initialize the game and the overall game logic.- The order of the scripts that we add at the end is essential in
index.html
. styles.css
contains all the beautifying styles.- The
README.md
is the markdown info. file that is the first page in the repository.
Modern styling
Just like modern JavaScript, the world around styling the web has also progressed in the past years. ...