User prompt
add self.boxdestoyed value to console log
User prompt
Fix Bug: 'ReferenceError: boxDestroyed is not defined' in this line: 'if (boxDestroyed) {' Line Number: 156
User prompt
Fix Bug: 'ReferenceError: boxDestroyed is not defined' in this line: 'if (boxDestroyed) {' Line Number: 156
Code edit (2 edits merged)
Please save this source code
User prompt
add a game listener to check box status
User prompt
add ghost movement to nokitty
User prompt
send parameter of boxdestroyed from box to game class
Code edit (9 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'boxDestroyed')' in this line: 'self.parent.boxDestroyed = true;' Line Number: 30
User prompt
send box destroyed parameter to game class
User prompt
Fix Bug: 'ReferenceError: boxDestroyed is not defined' in this line: 'if (boxDestroyed) {' Line Number: 161
User prompt
send value from box on boxdestroyed to game class
Code edit (1 edits merged)
Please save this source code
User prompt
if box is destroyed check if kitty is visible, then set yesmessagedisplay to true. If kitty is not visible, set nomessagedisplaey to true.
User prompt
in the game class add a tick event to check if box is destroyed.
User prompt
add a listener to check if box is destroyed in the game.
User prompt
add a tick event that check if box is destroyed
User prompt
Fix Bug: 'ReferenceError: kitty is not defined' in this line: 'if (!kitty.visible) {' Line Number: 52
User prompt
nokitty should move like a ghost after box is destroyed
User prompt
increase swipe accross threshold by 400 pixels
User prompt
swipe should start in a position x smaller than 300 and should end in a position of x bigger than 1300
User prompt
if swipeaccrosbox then add slice effect to box. cut it in two piece
User prompt
add a new movement without changing the current behavior. if player swipes from outside the box to a position on the other side of the box, destroy the box
User prompt
add slice option to destroy the box. slice should cover all the width of the box
User prompt
only rotate box if it starts moving
===================================================================
--- original.js
+++ change.js
@@ -153,8 +153,9 @@
messageDisplay.x = box.x;
messageDisplay.y = box.y - 800;
messageDisplay.show();
LK.on('tick', function () {
+ console.log('Box Destroyed:', self.boxDestroyed);
if (self.boxDestroyed) {
if (kitty.isKittyVisible) {
yesMessageDisplay.visible = true;
} else {
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