HTML and CSS Reference
In-Depth Information
Now, you will need to make a game.css file in your css folder:
body
{
margin: 0px;
padding: 0px;
background-color: black;
}
Finally, you make your main.ts file, which will go in your src folder. Simply put in it the following content:
console.log("Hello TypeScript");
You should now have a project that looks like Figure 19-4 .
Figure 19-4. You should now have an index.html, a game.css, and a main.js file
If you go back to the command line and run the following code at the root of your game's project directory,
it should start the build script:
> grunt
Assuming that everything worked correctly, you will see your game's index page in the browser, along with your
trace to the console window, as displayed in Figure 19-5 .
 
Search WWH ::




Custom Search