Code edit (3 edits merged)
Please save this source code
User prompt
пуля вылетает в рандомном направлении от 0 до 90 градусов и летит ровно
User prompt
пуля летит рандомно от 0 до 90 градусов
User prompt
пуля не преследует игрока, а летит в по направлению своего движения
User prompt
пуля летит в направлении, где в данный момент находится игрок
User prompt
пуля летит в направление движения игрока
User prompt
пуля летит в игрока
User prompt
пуля появляется через 3 секунды, до этого момента она не отображается
User prompt
удалить bullet2
Code edit (3 edits merged)
Please save this source code
User prompt
bullet 2 начинает движение влево через 3 секунды
Code edit (2 edits merged)
Please save this source code
User prompt
добавить еще одну пулю в правую часть экрана
User prompt
добавить новую пулю в правую часть экрана на такой же высоте
Code edit (4 edits merged)
Please save this source code
User prompt
пуля начинает лететь только со второй секунды
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
объект bullet появляется в нижней левой части и летит по диагонали вправа
User prompt
bullet появляется в центре экрана и летит направо со скоростью 3
User prompt
Добавить объект bullet в центре экрана
Code edit (1 edits merged)
Please save this source code
User prompt
удалить класс пули
User prompt
добавить движение пуляи
User prompt
пули перемещаются по направлению движения самолета
===================================================================
--- original.js
+++ change.js
@@ -256,9 +256,9 @@
// Move the bullets and remove them when they leave the screen
for (var i = 0; i < bullets.length; i++) {
bullets[i].move();
// If the bullet has left the screen
- if (bullets[i].y < 0) {
+ if (bullets[i].y < 0 || bullets[i].y > 2732 || bullets[i].x < 0 || bullets[i].x > 2048) {
// Remove the bullet from the game
game.removeChild(bullets[i]);
// Remove the bullet from the bullets array
bullets.splice(i, 1);
снаряд от пушки. 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.