User prompt
Fix Bug: 'TypeError: self.setBoxDestroyed is not a function' in this line: 'self.setBoxDestroyed(true);' Line Number: 83
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 197
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 197
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 197
User prompt
Fix Bug: 'TypeError: self.setBoxDestroyed is not a function' in this line: 'self.setBoxDestroyed(true);' Line Number: 83
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 197
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 197
Code edit (1 edits merged)
Please save this source code
User prompt
update redbutton.on function. when button is pressed, increase the size of the box asset until it ocuppies the whole screen. after that, destroy the box.
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 137
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 135
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 127
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 136
User prompt
Fix Bug: 'TypeError: self.setBoxDestroyed is not a function' in this line: 'self.setBoxDestroyed(true);' Line Number: 83
User prompt
Fix Bug: 'TypeError: this.setBoxDestroyed is not a function' in this line: 'this.setBoxDestroyed(true);' Line Number: 83
User prompt
Fix Bug: 'Uncaught ReferenceError: redbutton is not defined' in this line: 'redbutton.on('down', function () {' Line Number: 169
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 202
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 202
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'setBoxDestroyed')' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 202
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 134
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 132
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 130
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 130
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'this.startPos = obj.event.getLocalPosition(self.parent);' Line Number: 129
===================================================================
--- original.js
+++ change.js
@@ -158,9 +158,9 @@
}
if (self.x < 0 || self.x > 2048 || self.y < 0 || self.y > 2732) {
self.destroy();
console.log('Box explode on swipe');
- self.game.setBoxDestroyed(true);
+ self.game && self.game.setBoxDestroyed(true);
LK.setTimeout(function () {
LK.showGameOver();
}, 4000);
}
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