Code edit (6 edits merged)
Please save this source code
User prompt
instead of game over, reste game after the box is destroyed.
Code edit (5 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: self.addChild is not a function' in this line: 'self.addChild(boxGraphics);' Line Number: 162
User prompt
Fix Bug: 'Timeout.tick error: self.createAsset is not a function' in this line: 'var boxGraphics = self.createAsset('box', 'Box Graphics', 0.5, 0.5);' Line Number: 161
Code edit (1 edits merged)
Please save this source code
User prompt
in reset game, add respawn of box
User prompt
respawn game on reset game
User prompt
after the box is destroyed, do not end game, but reset it to the starting position instead.
User prompt
When axe intersects with box, destroy axe after 3 seconds
User prompt
Box piece should be destroyes after 3 seconds
User prompt
Fix Bug: 'Timeout.tick error: Cannot set properties of undefined (setting 'visible')' in this line: 'this.deadMessage.visible = false;' Line Number: 351
User prompt
Reset game should hide alive or dead message
User prompt
Reset game should respawn the box
User prompt
After box is destroyes, inatead of game over, take the game back to the start point.
Code edit (15 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: currentX is not defined' in this line: 'self.swipeEndX = currentX > self.x + self.width / 2 ? currentX : null;' Line Number: 196
User prompt
update swipestarx and swipeendx. it should only check if shipestartx is on the left side of the box, and the swipednx is on the right side of the ebox.
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: BoxPiece is not defined' in this line: 'var piece = new BoxPiece();' Line Number: 135
User prompt
add two different assets for boxpiece
User prompt
Fix Bug: 'ReferenceError: BoxBottom is not defined' in this line: 'var bottomPiece = new BoxBottom();' Line Number: 101
User prompt
Fix Bug: 'ReferenceError: BoxTop is not defined' in this line: 'var topPiece = new BoxTop();' Line Number: 92
Code edit (6 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -430,8 +430,11 @@
}
if (axe.intersects(box)) {
messageText.setText('(Chop chop! Is there any other way left?)');
box.explode();
+ LK.setTimeout(function () {
+ axe.destroy();
+ }, 3000);
if (self.isDead) {
deadMessage.visible = true;
} else {
aliveMessage.visible = true;
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