HTML and CSS Reference
In-Depth Information
// add game.stage to ticker make the stage.update call
automatically.
};
}).call(this, game, createjs);
9. Finally, we define the entry point to invoke the game logic:
;(function(game){
if (game) {
game.start();
} else {
throw "No game logic found.";
}
}).call(this, game);
At this point, we will have the result that's shown in the following screenshot. We can see
that the interfaces are in front of the background elements. Please note that we have not
added any objects in the city layer yet, so we can't see the city layer in the screenshot:
 
Search WWH ::




Custom Search