var Box = Container.expand(function () { var self = Container.call(this); var boxGraphics = self.createAsset('box', 'Box Graphics', .5, .5); self.open = function () {}; }); var Kitty = Container.expand(function () { var self = Container.call(this); var kittyGraphics = self.createAsset('kitty', 'Kitty Graphics', .5, .5); self.thrive = function () {}; self.dive = function () {}; }); var Game = Container.expand(function () { var self = Container.call(this); LK.stageContainer.setBackgroundColor(0x000000); var box = self.addChild(new Box()); var kitty = self.addChild(new Kitty()); box.x = 2048 / 2; box.y = 2732 / 2; kitty.x = 2048 / 2; kitty.y = 2732 / 2; box.on('down', function () { box.open(); if (Math.random() < 0.5) { kitty.thrive(); } else { kitty.dive(); } }); LK.on('tick', function () { kitty.update(); }); });
===================================================================
--- original.js
+++ change.js
@@ -26,8 +26,7 @@
kitty.dive();
}
});
LK.on('tick', function () {
- box.update();
kitty.update();
});
});
8-bit. cartoon. red button. do not touch! Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. cartoon. black tub stopper with chain. in game asset.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. cartoon. axe. in game asset. no shadow.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Break in case of emergency square. Ax drawing inside. simple. 8-bit. cartoon. blackand white.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Delete