User prompt
добавить health_bar в верхнюю часть экрана
Code edit (1 edits merged)
Please save this source code
User prompt
увеличить границу пола на 50
User prompt
исправить ошибку, когда самолет сразу же врезается в пол
Code edit (15 edits merged)
Please save this source code
User prompt
самолет появляется в левой нижней части экрана
User prompt
удалить Background1
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
добавить Background2
Code edit (5 edits merged)
Please save this source code
User prompt
переместить background1 над background
User prompt
добавить картинку background1 в верхней части экрана
User prompt
добавить задний фон1
User prompt
смерть при касании потолка и пола не по объекту, а по изображению
User prompt
удалить задний фон сверху
User prompt
задний фон добавить в нижнюю часть экрана
User prompt
сделать задний фон форматов 2048 на 2732
User prompt
Отображать задний фон
User prompt
добавить background
Code edit (1 edits merged)
Please save this source code
User prompt
если самолет вращается вокруг своей оси, то и пули вылетают из дула самолета, а не из правой части картинки
User prompt
пуля вылетает из самолета
User prompt
установка скорости и направления пуль на основе текущей скорости и ориентации самолета в момент выстрела
User prompt
если самолет коснулся верхней части экрана game over
===================================================================
--- original.js
+++ change.js
@@ -69,8 +69,15 @@
/****
* Game Code
****/
+// Add background to the game
+var background = game.attachAsset('background', {
+ anchorX: 0,
+ anchorY: 0,
+ scaleX: 1,
+ scaleY: 1
+});
var bullets = []; // Global array to keep track of bullets
// Add background to the game
var background = game.attachAsset('background', {
anchorX: 0,
снаряд от пушки. 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.