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
User prompt
Fix Bug: 'ReferenceError: value is not defined' in this line: 'this.isKittyVisible = value;' Line Number: 170
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.game.setBoxDestroyed is not a function' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 55
Code edit (5 edits merged)
Please save this source code
User prompt
add a fucntion in game to check if iskittyvisible
Code edit (1 edits merged)
Please save this source code
User prompt
stop tick if self.game.setboxdestroyed is true
User prompt
if box is swiped up then have box move towards the direction of the swipe until it leaves the screen
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
add console log before yesMessgadeDisplay.show.
Code edit (3 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.game.setBoxDestroyed is not a function' in this line: 'self.game.setBoxDestroyed(true);' Line Number: 54
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: self.game.setKittyVisible is not a function' in this line: 'self.game.setKittyVisible(false);' Line Number: 137
User prompt
Fix Bug: 'Uncaught TypeError: self.game.setKittyState is not a function' in this line: 'self.game.setKittyState(false);' Line Number: 137
User prompt
Fix Bug: 'Uncaught TypeError: self.game.setKittyVisible is not a function' in this line: 'self.game.setKittyVisible(false);' Line Number: 137
User prompt
Fix Bug: 'Uncaught TypeError: self.game.setKittyState is not a function' in this line: 'self.game.setKittyState(false);' Line Number: 137
User prompt
Fix Bug: 'Uncaught ReferenceError: kitty is not defined' in this line: 'kitty.x = 2048 / 2;' Line Number: 158
User prompt
Fix Bug: 'Uncaught TypeError: self.game.setKittyVisible is not a function' in this line: 'self.game.setKittyVisible(false);' Line Number: 137
Code edit (2 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -93,8 +93,16 @@
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;
self.rotationSpeed = 0.1 * self.direction.x;
+ if (self.velocity.y < 0) {
+ LK.on('tick', function () {
+ self.y += self.velocity.y;
+ if (self.y < 0) {
+ self.destroy();
+ }
+ });
+ }
}
});
var boxGraphics = self.createAsset('box', 'Box Graphics', .5, .5);
var clickCount = 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