User prompt
переделай систему спавна врагов, что бы они появлялись в разное время
User prompt
из убитых врагов может выпасть дополнительная жизнь с шансом 1 к 100, игрок может подобрать жизнь восстановив себе 1 единицу жизни, после подбора значок жизни исчезает с карты
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in this line: 'powerUp.x = enemies[j].x;' Line Number: 258
User prompt
игрок может поднимать бонусы прикоснувшись к нему
User prompt
из убитых врагов может с небольшим шансом выпасть бонус. добавь 3 вида бонусов например: временное увеличение скорости передвижения героя", увеличение скорости стрельбы
User prompt
Fix Bug: 'ReferenceError: ShootingEnemy is not defined' in this line: 'enemy = new ShootingEnemy();' Line Number: 156
===================================================================
--- original.js
+++ change.js
@@ -252,10 +252,10 @@
enemies.splice(j, 1);
// 20% chance to spawn a power-up
if (Math.random() < 0.2) {
var powerUp = new PowerUp();
- powerUp.x = enemies[j].x;
- powerUp.y = enemies[j].y;
+ powerUp.x = bullets[i].x;
+ powerUp.y = bullets[i].y;
powerUps.push(powerUp);
game.addChild(powerUp);
}
// Destroy bullet
hero with a gun, shoots forward, top view, topdown. Single Game Texture. In-Game asset. 2d.TopDown. Blank background. High contrast. No shadows.
metal ball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A fireball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
heart. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
zombie kamikaze, vertical top view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
opponent for the game, zombie kamikaze, vertical top view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.