User prompt
последующий низ кроме первого создается в правой нижней части экрана
Code edit (5 edits merged)
Please save this source code
User prompt
второй niz создается через секунду, а последующие через 2
Code edit (3 edits merged)
Please save this source code
User prompt
создавать niz каждые 2 секунды, кроме первого
User prompt
создавать niz каждые 2 секунды
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
не удалять niz
User prompt
niz На задний слой
Code edit (5 edits merged)
Please save this source code
User prompt
Удалять Niz только тогда, когда картинка NIZ полностью исчезнет из видимости экрана
Code edit (1 edits merged)
Please save this source code
User prompt
добавь картинку niz в нижнюю часть экрана
User prompt
удали фон снизу
User prompt
сделай вот так м
User prompt
добавить изображение FON_SNIZU в нижнюю часть экрана
User prompt
удалить фон снизу
Code edit (2 edits merged)
Please save this source code
User prompt
newfonsnizu создается с правого края
Code edit (4 edits merged)
Please save this source code
User prompt
добавить создание последующих FONSNIZU каждую секунду в нижней правой части экрана
Code edit (1 edits merged)
Please save this source code
User prompt
создавать FONSNIZU следующие после первого, даже если его не видно первоначально на экране
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -167,9 +167,9 @@
// Center horizontally
anchorY: 1.0 // Align to the bottom
}));
niz.x = 2048 / 2; // Center image horizontally
-niz.y = 2732 + 2500; // Position image at the bottom of the screen
+niz.y = 2732 + 1000; // Position image at the bottom of the screen
niz.rotation = Math.PI / 9;
// Add player to the game
var ball = game.addChild(LK.getAsset('Ball', {
anchorX: 0.5,
@@ -270,13 +270,9 @@
child.x -= 15 * Math.cos(child.rotation); // Increase the speed by 1.5 times
child.y -= 15 * Math.sin(child.rotation); // Increase the speed by 1.5 times
if (child.y + child.height / 2 < 0 || child.x - child.width / 2 > 2048 || child.y - child.height / 2 > 2732) {
// If the image is completely off the screen
- if (child !== niz) {
- child.destroy(); // Remove the image
- } else if (child.y - child.height / 2 > 2732) {
- niz.destroy(); // Remove NIZ only when it is completely off the screen
- }
+ child.destroy(); // Remove the image
}
}
game.setChildIndex(player, game.children.length - 1); // Move player to the top
});
создать мультяшного сидячего персонажа. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
snowball. 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
Алмаз, мультяшный. 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
Ufo (летающая тарелка). Мультяшная. 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
Мультяшный рыбак зимой сидит рыбачит. 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
Куст в снегу мультяшный. 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
Рука белая. Иконка. 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
снежинка. мультяшная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
text: New Record! Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows