Code edit (2 edits merged)
Please save this source code
User prompt
after clicking on the screen, the bird object is reduced vertically by 10 pixels and returns to its original size again
Code edit (19 edits merged)
Please save this source code
User prompt
after 20 points we begin to create conditions var obstaclesGraphics = self.attachAsset('obstacle', { anchorX: 0.3, anchor: 0.3, shape: ellipse
Code edit (1 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
intersection of bird objects and obstacles within the radius of the image, not the object
Code edit (1 edits merged)
Please save this source code
User prompt
death when colliding with an obstacle only in the center of the obstacle object
User prompt
change obstacle object from square to circle
User prompt
reduce the distance between a bird colliding with an obstacle by 100
Code edit (1 edits merged)
Please save this source code
User prompt
radius 25 object obstacle for contact with bird
Code edit (5 edits merged)
Please save this source code
User prompt
Add function Displaying points after death from obstacles
User prompt
the death of a bird with a touch of an obstacle in the area width:100, height:100
Code edit (4 edits merged)
Please save this source code
User prompt
after pressing, the bird rotates 90 degrees
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
Update score every 2 second
Code edit (6 edits merged)
Please save this source code
User prompt
add a background фон below the background небо
User prompt
add background небо
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -107,10 +107,10 @@
LK.showGameOver();
}
}
// Check if bird has fallen off the screen or risen above the screen
- var dx = bird.x - 2300 / 2;
- var dy = bird.y - 2732 / 2;
+ var dx = bird.x - 2048 / 2;
+ var dy = bird.y - 2932 / 2;
var distance = Math.sqrt(dx * dx + dy * dy);
if (distance > 2732 / 2) {
// Flash screen red for 1 second (1000ms) to show game over.
LK.effects.flashScreen(0xff0000, 1000);
голубое небо, горизонт и зеленое поле. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Мультяшный квадратный сюрикен. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
button leaderboards. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.