User prompt
rotate arrow 110 degrees
User prompt
rotate arrow -90 degrees
User prompt
rotate -20 degress
User prompt
rotate arrow -100 degrees
User prompt
fire the arrow from the left of the screen so it goes left to right not the bottom
User prompt
flip target on x axis
User prompt
flip the target on the y axis
Initial prompt
Arrow Master
===================================================================
--- original.js
+++ change.js
@@ -2,9 +2,9 @@
var self = Container.call(this);
var arrowGraphics = self.createAsset('arrow', 'Arrow Graphics', .5, .5);
self.speed = 10;
self.move = function () {
- self.y -= self.speed;
+ self.x += self.speed;
};
});
var Target = Container.expand(function () {
var self = Container.call(this);
@@ -27,16 +27,16 @@
target.y = 2732 / 2;
var arrow;
stage.on('down', function (obj) {
arrow = self.addChild(new Arrow());
- arrow.x = obj.event.getLocalPosition(self).x;
- arrow.y = 2732;
+ arrow.x = 0;
+ arrow.y = obj.event.getLocalPosition(self).y;
arrows.push(arrow);
});
LK.on('tick', function () {
for (var a = arrows.length - 1; a >= 0; a--) {
arrows[a].move();
- if (arrows[a].y < -50) {
+ if (arrows[a].x > 2048) {
arrows[a].destroy();
arrows.splice(a, 1);
}
if (arrows[a] && arrows[a].intersects(target)) {
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.