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
Code edit (4 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: 215
User prompt
Fix Bug: 'Timeout.tick error: self.setBoxDestroyed is not a function' in this line: 'self.setBoxDestroyed(true);' Line Number: 215
User prompt
when red button is touched start increasing the size of the box asstet until it occupies the whole screen. after that destroy 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: 129
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
if redbutton is touched, destroy 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: 125
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'if (this.startPos.y > endPos.y && Math.abs(this.startPos.y - endPos.y) > 100) {' Line Number: 38
Code edit (1 edits merged)
Please save this source code
User prompt
message should only move a maximum of 200 pixels up
User prompt
message display should move upwards on tick after swipe up
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: startPos is not defined' in this line: 'self.velocity.x = endPos.x - startPos.x;' Line Number: 99
User prompt
Fix Bug: 'ReferenceError: startPos is not defined' in this line: 'var swipeAcrossBox = startPos.x < self.x && endPos.x > self.x || startPos.x > self.x && endPos.x < self.x;' Line Number: 76
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'if (self.startPos.y > endPos.y && Math.abs(self.startPos.y - endPos.y) > 100) {' Line Number: 29
User prompt
when yesornotmessage asset is swipe up, it should move 400 pixels up
Code edit (1 edits merged)
Please save this source code
User prompt
add new asset called redbutton
Code edit (4 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'kitty')' in this line: 'console.log('Inside loop', game.kitty.isKittyVisible);' Line Number: 175
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'kitty')' in this line: 'console.log('Inside loop', game.kitty.isKittyVisible);' Line Number: 175
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -95,10 +95,10 @@
LK.setTimeout(function () {
LK.showGameOver();
}, 4000);
} else {
- self.velocity.x = endPos.x - startPos.x;
- self.velocity.y = endPos.y - startPos.y;
+ self.velocity.x = endPos.x - this.startPos.x;
+ self.velocity.y = endPos.y - this.startPos.y;
self.direction.x = self.velocity.x > 0 ? 1 : -1;
self.direction.y = self.velocity.y > 0 ? 1 : -1;
self.velocity.x = Math.abs(self.velocity.x) > 5 ? 25 * self.direction.x : 0;
self.velocity.y = Math.abs(self.velocity.y) > 5 ? 25 * self.direction.y : 0;
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