User prompt
против летит 2 секунды горизонтально, потом направление раномно меняется
Code edit (1 edits merged)
Please save this source code
User prompt
начальное положение самолета противника х = 2000 y = 150
User prompt
Изменение начального положения пули на заднюю часть плоскости вращения
User prompt
Изменение начального положения пули противника на переднюю часть плоскости вращения
User prompt
исправить ошибку, когда самолет противника стреляет пулями из задний части картинка, а должен из передней
User prompt
выстрелы у противника начинаются из передней части рисунка
User prompt
добавить выстрелки противнику, как у игрока
User prompt
Please fix the bug: 'Uncaught ReferenceError: background2 is not defined' in or related to this line: 'if (game.children.includes(background2)) {' Line Number: 122
User prompt
удалить background2
User prompt
удалить background
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.setChildIndex(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 122
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.addChildAt(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 121
User prompt
Переместить enemyPlane на передний план относительно background2
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.setChildIndex(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 122
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.addChildAt(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 121
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.setChildIndex(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 122
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.addChildAt(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 121
User prompt
изменить порядок слоев между противником и background2
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.addChildAt(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 121
User prompt
Please fix the bug: 'Uncaught Error: The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.addChildAt(enemyPlane, game.getChildIndex(background2) + 1);' Line Number: 121
User prompt
переместить самолет противника на передний план, относительно background2
User prompt
переместить противника на передний план, относительно 'background" и "background2"
User prompt
создать противника, который появляется в правой части экрана и летит в левую часть со скоростью = 5
User prompt
удалить противника
===================================================================
--- original.js
+++ change.js
@@ -112,9 +112,9 @@
* Game Code
****/
// Create an enemy plane
var enemyPlane = new EnemyPlane();
-enemyPlane.x = 2000;
+enemyPlane.x = 150;
enemyPlane.y = 150;
game.addChild(enemyPlane);
// Add health_bar to the top of the game
var healthBar = LK.gui.top.attachAsset('health_bar', {
снаряд от пушки. 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.