HTML and CSS Reference
In-Depth Information
Objective complete - mini debriefing
We have created a very basic structure of the game. The following secions explain what we
have done.
HTML structure
The header, secion, and footer arrangement follows a simple HTML5 content structure.
We will put the game elements inside this structure, atached to the game. The following
screenshot shows the HTML structure:
Modularizing the logic
We separate the JavaScript logic into modules, and each separated file encapsulates one
module. This allows us to tackle each part individually. The first JavaScript file we have is
the game.js file. It is in charge of controlling the game flow. There are other different
parts in this game, and for these parts, we are going to create different files with the
purpose of using them for future tasks.
Search WWH ::

Custom Search