===================================================================
--- original.js
+++ change.js
@@ -42,14 +42,18 @@
/****
* Initialize Game
****/
var game = new LK.Game({
- backgroundColor: 0x000000 //Init game with black background
+ backgroundColor: 0x000000 //Init game with black background
});
/****
* Game Code
****/
+var background = game.addChild(LK.getAsset('background', {
+ anchorX: 0,
+ anchorY: 0
+}));
// Initialize game variables
var ingredients = [];
var score = 0;
var cookingPot = game.addChild(new CookingPot());