HTML and CSS Reference
In-Depth Information
In this task, we need the following image files. You can get them from the code bundle.
The
index.html
file is very similar to the previous examples. We'll only show the most
relevant HTML code here. We have deined the following game secion:
...
<section id="game" class="row">
<canvas id="canvas" width="960" height="480"></canvas>
</section>
...
Just before closing the
body
tag, we include the libraries and the
game.js
JavaScript files:
...
<script src="vendors/easeljs-0.7.1.min.js"></script>
<script src="vendors/tweenjs-0.5.1.min.js"></script>
<script src="scripts/game.js"></script>
...