Code edit (1 edits merged)
Please save this source code
User prompt
move layers 100 pixels up and 100 pixels left
Code edit (2 edits merged)
Please save this source code
User prompt
remove axe layers
Code edit (3 edits merged)
Please save this source code
User prompt
move layer 4 100 pixels up and 100 to the left
Code edit (3 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'var currentY = obj.event.getLocalPosition(self.parent).y;' Line Number: 146
Code edit (10 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'var currentY = obj.event.getLocalPosition(self.parent).y;' Line Number: 146
Code edit (1 edits merged)
Please save this source code
Code edit (10 edits merged)
Please save this source code
User prompt
make alive kitty gostly movement faster
User prompt
hop should start from the center positon up
User prompt
kitty start position for jumping should be its original position
User prompt
kitty hop movement should go up and down up and down
User prompt
kitty hops should start from the kitty position and up
User prompt
move alive kitty 50 pixels above the shadow
User prompt
instead of ghostly movement if kitty is not dead it should hop up and down
User prompt
kitty hop soudl start 100 pixels up
User prompt
change kitty movement when isdead is false. instead of gostly it should hop up and down.
Code edit (1 edits merged)
Please save this source code
User prompt
if kitty.isdead = false, then hide deadkitty.
Code edit (1 edits merged)
Please save this source code
User prompt
axe should be behind all the layers
===================================================================
--- original.js
+++ change.js
@@ -231,15 +231,12 @@
var Kitty = Container.expand(function () {
var self = Container.call(this);
self.isDead = false;
self.alpha = 1;
- var hopMovement = function () {
- var amplitude = 10;
- var frequency = 10;
- var centerOffset = self.height / 2;
- self.y = LK.stage.height / 2 - centerOffset + Math.sin(LK.ticks / frequency) * amplitude;
+ var ghostlyMovement = function () {
+ self.y += Math.sin(LK.ticks / 5) * 2;
};
- LK.on('tick', hopMovement);
+ LK.on('tick', ghostlyMovement);
var kitty = self.createAsset('alive', 'Kitty Graphics', 0.5, 0.5);
});
var DeadKitty = Container.expand(function () {
var self = Container.call(this);
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