User prompt
reduce gravity by .75
User prompt
Decrease the amount that the arrow falls over time by .5
User prompt
Decrease the amount that the arrow falls over time by x.2
User prompt
Decrease the amount that the arrow falls over time by x.6
User prompt
decrease the amount that the arrow falls over time by .6
User prompt
increase the amount that arrow rotates as it travels by 1.5
User prompt
increase the amount that arrow rotates as it travels by 1.2
User prompt
reduce to zero after 1 sec
User prompt
leave a trail of smoke particles as the arrow flies, each smoke particle should stay in position and reduce in size to zero after .5 secs
User prompt
increase the initial angle of the arrow by 10 degrees
User prompt
change the x position as well as the y position of the player after each successful shot but restrict the x position to within 50 and 250 pixels from the left
User prompt
move the player to the right by 50 pixels
User prompt
move the player to the right by 25 pixels
User prompt
set the first level target speed to 2
User prompt
reduce the initial target vertical speed by 50%
User prompt
change the target scale change after each level to 0.95 instead of 0.9
User prompt
make the player ease into the new position after each successful shot
User prompt
instead of fading out, make particles reduce in size to zero
User prompt
make particles fade out 2x faster
User prompt
increase speed of particle class by 2x
User prompt
add an aim pointer to indicate the aim angle
User prompt
ensure vertical movement tick function is not being called twice in one frame update
User prompt
increase the initial angle of the arrow by 5 degrees relative to the aim.
User prompt
STOP FUCKING INCREASING THE SPEED OF THE VERTICAL MOVEMENT OF THE TARGET FOR EACH LEVEL FOR FUCKS SAKE
User prompt
stop increasing the vertical speed for each successive level
===================================================================
--- original.js
+++ change.js
@@ -28,8 +28,30 @@
}, 1000);
});
var Player = Container.expand(function () {
var self = Container.call(this);
+ Player.prototype.easeAndMoveVertical = function (newX, newY) {
+ var self = this;
+ var startTime = LK.ticks;
+ var duration = 30;
+ var startX = self.x;
+ var startY = self.y;
+ var deltaX = newX - startX;
+ var deltaY = newY - startY;
+ var easingComplete = false;
+ LK.on('tick', function () {
+ var currentTime = LK.ticks;
+ var progress = (currentTime - startTime) / duration;
+ if (progress < 1) {
+ self.x = startX + deltaX * progress;
+ self.y = startY + deltaY * progress;
+ } else if (!easingComplete) {
+ self.x = newX;
+ self.y = newY;
+ easingComplete = true;
+ }
+ });
+ };
var playerGraphics = self.createAsset('player', 'Player Graphics', .5, .5);
});
var Arrow = Container.expand(function () {
var self = Container.call(this);
@@ -158,9 +180,10 @@
self.addChild(new FireworkParticle(arrows[a].x, arrows[a].y));
}
arrows[a].destroy();
arrows.splice(a, 1);
- player.y = Math.random() * (2732 / 2 + 300 - (2732 / 2 - 300)) + 2732 / 2 - 300;
+ var newPlayerY = Math.random() * (2732 / 2 + 300 - (2732 / 2 - 300)) + 2732 / 2 - 300;
+ player.easeAndMoveVertical(player.x, newPlayerY);
}
}
});
});
a green field background
a target roundel viewed from the side
plain gold star, no outline Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a cartoon archers bow viewed from the side Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a long cartoon arrow with gold shaft and steel point Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.