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
var Arrow = Container.expand(function () {
var self = Container.call(this);
var arrowGraphics = self.createAsset('arrow', 'Arrow Graphics', .5, .5);
self.speed = 10;
self.move = function () {
self.y -= self.speed;
};
});
var Target = Container.expand(function () {
var self = Container.call(this);
var targetGraphics = self.createAsset('target', 'Target Graphics', .5, .5);
});
var Game = Container.expand(function () {
var self = Container.call(this);
var arrows = [];
var targets = [];
var score = 0;
var scoreTxt = new Text2('0', {
size: 150,
fill: "#ffffff"
});
scoreTxt.anchor.set(.5, 0);
LK.gui.topCenter.addChild(scoreTxt);
var target = self.addChild(new Target());
target.x = 2048 / 2;
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;
arrows.push(arrow);
});
LK.on('tick', function () {
for (var a = arrows.length - 1; a >= 0; a--) {
arrows[a].move();
if (arrows[a].y < -50) {
arrows[a].destroy();
arrows.splice(a, 1);
}
if (arrows[a] && arrows[a].intersects(target)) {
score++;
scoreTxt.setText(score);
arrows[a].destroy();
arrows.splice(a, 1);
}
}
});
});
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.