User prompt
reduce player bullet damage by 25%
User prompt
set a maximum fire rate for the hero weapon to 333ms
User prompt
increase zombie speed by 50%
User prompt
add code that stops zombies intersecting
User prompt
stop zombies damaging or killing each other
User prompt
double player bullet damage
User prompt
add more zombies
User prompt
have more zombies on screen
User prompt
the player moves instantaneously, this is a bug
User prompt
keep the player movement as it is, but the player character can shoot while moving
User prompt
double player bullet damage
User prompt
the player can shoot while moving
User prompt
Triple the speed of the bullets
User prompt
only fire a new player bullet when the previous bullet is offscreen or has hit an enemy
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.bullets.length')' in this line: 'if (self.shootDelay <= 0 && self.targetX === self.x && self.targetY === self.y && self.bullets.length === 0) {' Line Number: 87
User prompt
Fix Bug: 'ReferenceError: Can't find variable: bullets' in this line: 'if (self.shootDelay <= 0 && self.targetX === self.x && self.targetY === self.y && bullets.length === 0) {' Line Number: 87
User prompt
there is only one player bullet on screen at any one time
Remix started
Copy Merging Zombie Defense
===================================================================
--- original.js
+++ change.js
@@ -287,12 +287,14 @@
self.clickTarget.setVisible(true);
});
var spawnInterval = 2100;
timer = LK.setInterval(function () {
- var zombie = new Zombie(hero);
- zombie.spawn();
- zombies.push(zombie);
- self.addChild(zombie);
+ for (var i = 0; i < 2; i++) {
+ var zombie = new Zombie(hero);
+ zombie.spawn();
+ zombies.push(zombie);
+ self.addChild(zombie);
+ }
spawnInterval = Math.max(300, spawnInterval - 20);
LK.clearInterval(timer);
timer = LK.setInterval(arguments.callee, spawnInterval);
}, spawnInterval);
Soldier with gun seen from above. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
empty abandoned city street background seen from the top. Zoomed in. Top down. Street only
Zombie seen from above. Arms in front of it Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Fired Bullet tip, no case, grayscale Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Simple circular click target, showing where the hero needs to walk to. Grayscale. No shadows Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cloud puff explosion, grayscale, seen from topdown. Circular. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.