HTML and CSS Reference
In-Depth Information
<section id="game">
</section>
<section class='how-to-play'>
<div class="row">
<h2>How to Play?</h2>
<p>Composite your card to match the given
pattern.</p>
</div>
</section>
<footer>
<div class="row">
<p>This game is an example for the HTML5 Games
Hotshot topic. Free for personal and commerical
use.</p>
</div>
</footer>
<div id='element-template'>
</div>
3. Add the following JavaScript to the game.js file. It acts as the entry point of the
game logic:
(function(){
// Entry Point
var init = function() {
};
init(); // start the game
})(); // self-executing function.
Downloading the example code
You can download the example code iles for all Packt topics you have
purchased from your account at http://www.packtpub.com . If you
purchased this topic elsewhere, you can visit http://www.packtpub.
com/support and register to have the files e-mailed directly to you.
 
Search WWH ::




Custom Search