HTML and CSS Reference
In-Depth Information
6. We have another module for mathemaical calculaions. It's a placeholder for now,
but we will add logic to the object later:
// Calculation
var game = || ({});
game.calculation = {};
7. Next, we have the core game logic defined with the most basic setup:
// The Game Logic
var game = || ({});
game.start = function() {
var canvas = document.getElementById('canvas');
// passing the canvas to EaselJS.
game.stage = new createjs.Stage(canvas);
8. Finally, we have our entry point to connect the modules:
// Entry Point
if ( {;
} else {
throw "No game logic found.";
After performing these steps, we have the following text painted on the canvas tag:
Search WWH ::

Custom Search