User prompt
Первая пушка стреляет из правого верхнего угла картинки
User prompt
Сделать Пули из пушки летят в сторону игрока
User prompt
Первая пушка начинает стрелять через 16 секунд после начала игры
User prompt
Добавить выстрелы из первой пушки
User prompt
Сделать плавное перемещение После 22 секунды
User prompt
Исправить ошибку, когда самолеты начинают перемещаться после 5й секунды. А не после 22
User prompt
После 22 секунд, самолеты противников начинают плавно перемещаться вверх и вниз на одинаковое расстояние
Code edit (2 edits merged)
Please save this source code
User prompt
После 5 секунд, самолеты противников начинают плавно перемещаться вверх и вниз на одинаковое расстояние
User prompt
После 5 секунд, противники начинают двигаться подниматься и опускаться
User prompt
После 17 секунд, противники начинают двигаться отклоняться на 100 пикселей вверх и вниз
Code edit (4 edits merged)
Please save this source code
User prompt
Пушки начинают движение через 4 секунды после начала игры
Code edit (3 edits merged)
Please save this source code
User prompt
Cannon2 перемещается на расстояние 1950
Code edit (1 edits merged)
Please save this source code
User prompt
Создать cannon2. Написать код на 155 строке
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var cannon2 = new Cannon2();' Line Number: 156
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var cannon2 = new Cannon2();' Line Number: 156
Code edit (2 edits merged)
Please save this source code
User prompt
Создать cannon2 по аналогии с: var cannon = new Cannon(); cannon.x = -100; // Position at the bottom left of the screen cannon.y = 2660; game.addChild(cannon);
User prompt
Please fix the bug: 'TypeError: undefined is not an object (evaluating 'cannon2.x')' in or related to this line: 'if (cannon2.x > 2048 - 100) {' Line Number: 275
User prompt
Please fix the bug: 'TypeError: undefined is not an object (evaluating 'cannon2.x')' in or related to this line: 'if (cannon2.x > 2048 - 100) {' Line Number: 275
User prompt
Please fix the bug: 'TypeError: undefined is not an object (evaluating 'cannon2.x')' in or related to this line: 'if (cannon2.x > 2048 - 100) {' Line Number: 275
User prompt
Исправить ошибку, когда cannon2 не видно за задним фоном
===================================================================
--- original.js
+++ change.js
@@ -156,10 +156,10 @@
plane1.y = 2750 - plane1.height; // Bottom of the screen
game.addChild(plane1);
// Create a cannon
var cannon = new Cannon();
-cannon.x = -100; // Position at the bottom left of the screen
-cannon.y = 2660;
+cannon.x = 2048 - cannon.width; // Position at the top right of the screen
+cannon.y = 0;
game.addChild(cannon);
// Create a cannon2
var cannon2 = new Cannon2();
cannon2.x = 2150; // Position at the bottom left of the screen
снаряд от пушки. 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.