User prompt
Bring box on top of kitty on z axis
User prompt
Fix Bug: 'Uncaught ReferenceError: kittyGraphics is not defined' in this line: 'kittyGraphics.visible = kitty.isVisible;' Line Number: 38
User prompt
On game start set kitty visibilty in true or false randomly
User prompt
On game start change randomly kitty visibility
User prompt
If kitty is not vivible hide kitten asset
User prompt
On game start set kitten visbility randomly
User prompt
Create a variable on kitten to define is is visble or not
User prompt
When swipped box move at 500 pixels per secons
User prompt
Swipe should make box move on the swipes direction
User prompt
Destroy box if scren is tapped twice in one second
User prompt
For swipe to work it need to be longer than 100 pixels
User prompt
Player should be able to swipe in first touch
User prompt
On double click destroy box
User prompt
Move box at 1000 pixels per second
User prompt
Make box move at 400 pixels per second
User prompt
Make box move at 50 pixels per second
User prompt
Make box speed slower
User prompt
When the player swipes upwards box should start moving upwards slowly
User prompt
Box should move continuosly after swipe
User prompt
On swipe on box, box will move upwards untill it is out of the sceen
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'originalEvent')' in this line: 'if (event.data.originalEvent instanceof TouchEvent && event.data.originalEvent.type === 'touchmove') {' Line Number: 7
User prompt
On swipe up shoot box out of the screen
User prompt
Move kitty 500 pixels down
User prompt
Fix Bug: 'TypeError: kitty.update is not a function' in this line: 'kitty.update();' Line Number: 30
User prompt
Fix Bug: 'TypeError: kitty.update is not a function' in this line: 'kitty.update();' Line Number: 30
===================================================================
--- original.js
+++ change.js
@@ -15,15 +15,15 @@
self.destroy();
}
});
self.startMoving = function (direction) {
- self.velocity.x = direction.x * 500 / 60;
- self.velocity.y = direction.y * 500 / 60;
+ self.velocity.y = -1000 / 60;
};
});
var Kitty = Container.expand(function () {
var self = Container.call(this);
var kittyGraphics = self.createAsset('kitty', 'Kitty Graphics', .5, .5);
+ self.isVisible = false;
self.thrive = function () {};
self.dive = function () {};
});
var Game = Container.expand(function () {
@@ -52,10 +52,9 @@
});
self.on('up', function (objUp) {
end = objUp.event.getLocalPosition(self);
var direction = {
- x: end.x - start.x,
- y: end.y - start.y
+ y: start.y - end.y
};
if (Math.abs(direction.y) > 100) {
box.startMoving(direction);
box.open();
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