Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: healthBar' in or related to this line: 'if (plane1.x <= 70 || plane1.x >= 2170 - plane1.width || plane1.y <= 0 || plane1.y >= 2752 - plane1.height || plane1.intersects(healthBar)) {' Line Number: 223
User prompt
Удалить health_bar
User prompt
Удалить firstenemyspawntimer
Code edit (2 edits merged)
Please save this source code
User prompt
Добавить противника enemyleft, который появляется в левой части экрана и летит направо.
Code edit (6 edits merged)
Please save this source code
User prompt
Сдвинуть по y координате респаун игрока на 50 вправо
Code edit (2 edits merged)
Please save this source code
User prompt
Игрок не может пролететь сквозь стены, при пересечении стены сразу смерть
User prompt
Противник не может появляться на расстояние от 0 до 200 по y координате
Code edit (1 edits merged)
Please save this source code
User prompt
Противник появляется каждую секунду
User prompt
Убрать расстояние изображения противника при создании противника
User prompt
Противники появляются каждые 4 секунды
User prompt
Исправить ошибку, когда противники появляются справа экрана и не летят
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: enemyPlanes' in or related to this line: 'for (var i = 0; i < enemyPlanes.length; i++) {' Line Number: 192
User prompt
Исправить ошибку, когда первый противник останавливается и перестает лететь
User prompt
Первый противник вылетает через 2 секунды , остальные каждые 5 секунд
User prompt
Please fix the bug: 'TypeError: undefined is not an object (evaluating 'enemyPlane.update')' in or related to this line: 'enemyPlane.update();' Line Number: 184
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: enemyPlane' in or related to this line: 'enemyPlane.update();' Line Number: 183
User prompt
Противник вылетает из за стены каждые 5 секунд
Code edit (1 edits merged)
Please save this source code
User prompt
Исправил ошибку, когда при пересечении стены наступил game over, но игрок появился на другой части стены
User prompt
Игрок не может пересекать боковые части экрана, если пересек то смерть
===================================================================
--- original.js
+++ change.js
@@ -184,14 +184,14 @@
// Create the rest of the enemy planes every 1 second
var enemySpawnTimer = LK.setInterval(function () {
enemyPlane = new EnemyPlane();
enemyPlane.x = 2150;
- enemyPlane.y = 200 + Math.random() * (2332 - enemyPlane.height) + 200; // Random y-coordinate between 200 and 2732 minus the height of the enemy plane, excluding 0 to 200 range
+ enemyPlane.y = 100 + Math.random() * (2332 - enemyPlane.height) + 200; // Random y-coordinate between 200 and 2732 minus the height of the enemy plane, excluding 0 to 200 range
game.addChild(enemyPlane);
enemyPlanes.push(enemyPlane);
var enemyPlaneLeft = new EnemyPlaneLeft();
enemyPlaneLeft.x = 0;
- enemyPlaneLeft.y = 200 + Math.random() * (2332 - enemyPlaneLeft.height) + 200; // Random y-coordinate between 200 and 2732 minus the height of the enemy plane, excluding 0 to 200 range
+ enemyPlaneLeft.y = 100 + Math.random() * (2332 - enemyPlaneLeft.height) + 200; // Random y-coordinate between 200 and 2732 minus the height of the enemy plane, excluding 0 to 200 range
game.addChild(enemyPlaneLeft);
enemyPlanes.push(enemyPlaneLeft);
}, 1000);
// Set up game tick
снаряд от пушки. 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.