User prompt
move the arrow shoot location to the hand of the stickman
User prompt
play different sound on released.
User prompt
play sound when click is released.
User prompt
rotate the arrow in the opposite direction of the drag when released
User prompt
rotate the arrow in the direction of the drag when released
User prompt
Please fix the bug: 'Uncaught ReferenceError: arrow is not defined' in or related to this line: 'arrow.rotation = Math.atan2(stickman.y - y, stickman.x - x);' Line Number: 164
User prompt
rotate the arrow in the direction of the drag
User prompt
Change the color of stickman to blue-white
User prompt
Change the text color to dark blue.
User prompt
use the background asset for the background of the game.
User prompt
make the backround asset to game background
User prompt
do not reduce the score when ballon skip
User prompt
flash screen red when the ballon skip reduces
User prompt
remove the instruction text after the wave 1 completed.
User prompt
at the start of the game show wave 1.
User prompt
write text on the bottom center of the screen : " Click And Drag Behind to Shoot With More Power "
User prompt
Change background image
User prompt
Play sound when arrow hits the ballon
User prompt
remove the point reducing logic
User prompt
decrease the point by 1 if the arrow missed the ballons and reached the bottom edge of the screen.
User prompt
destroy the ballons and arrows if the are not visible on the screen, or outside of the screen bowndry
User prompt
on each arrow miss decrease the point
User prompt
Rotate the bow in the direction of the gravity
User prompt
now there is some performance issue so instaed of increasing the number of ballons in each wave, increase the speed bit by bit in each wave.
User prompt
now game is lagging after wave 4, fix the issue.
===================================================================
--- original.js
+++ change.js
@@ -137,10 +137,8 @@
};
var isMouseDown = false;
game.down = function (x, y, obj) {
isMouseDown = true;
- // Rotate the bow in the direction of the gravity
- stickman.rotation = Math.PI / 2;
};
game.up = function (x, y, obj) {
if (isMouseDown) {
var arrow = new Arrow();
@@ -159,10 +157,10 @@
}
};
game.move = function (x, y, obj) {
if (isMouseDown) {
- // Rotate the bow in the direction of the gravity
- stickman.rotation = Math.PI / 2;
+ // Rotate the stickman towards the mouse pointer
+ stickman.rotation = Math.atan2(stickman.y - y, stickman.x - x);
}
};
// Game update loop
game.update = function () {
@@ -215,8 +213,11 @@
if (balloonSkips >= 0) {
balloonSkipIcons[balloonSkips].destroy();
balloonSkipIcons.splice(balloonSkips, 1);
}
+ // Decrease score by 1
+ score--;
+ updateScore();
// Check for game over
if (balloonSkips <= 0) {
LK.showGameOver();
LK.gui.center.addChild(new Text2('Final Score: ' + score, {
Ballon Skiped. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Needle Shooting Stickman. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A clear blue sky with fluffy white clouds drifting lazily across.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.