User prompt
when updating score text also call LK.setScore
User prompt
Give me a point each time I kill a zombie
User prompt
As the game progresses zombies should spawn faster
User prompt
make zombies spawn 30% faster
Code edit (1 edits merged)
Please save this source code
User prompt
Flash screen red every time you take damage
User prompt
use the zombies[I] version when setting puff x and y
User prompt
tick all elements in the effects array in game
User prompt
puff should have a tick method
User prompt
make puff's it's own class
User prompt
create an effects array in game, add puff's to this array
User prompt
In game, when zombie merge returns true, insert a cloud puff element
User prompt
When merging zombies set the x,y of the merged zombie to the average of the two merged zombies
User prompt
when merging zombies multiply the max health and current health with .8
User prompt
Increase hero bullet fire speed by 50%
User prompt
remove all console.logs
User prompt
Change impact of close zombies from .5 to 1
Code edit (2 edits merged)
Please save this source code
User prompt
reverse the x,y medication when zombies are close to each other
User prompt
Zombies seem to push either other away rather than attacking
Code edit (1 edits merged)
Please save this source code
User prompt
Decrease zombie damage by 1/20
Code edit (1 edits merged)
Please save this source code
User prompt
set score text font size to 120
===================================================================
--- original.js
+++ change.js
@@ -231,8 +231,12 @@
}
for (var k = 0; k < zombies.length; k++) {
if (zombies[i] !== zombies[k] && zombies[i] && zombies[k] && zombies[i].intersects(zombies[k])) {
if (zombies[i].merge(zombies[k])) {
+ var puff = self.createAsset('puff', 'Puff effect', .5, .5);
+ puff.x = zombies[k].x;
+ puff.y = zombies[k].y;
+ self.addChild(puff);
zombies[k].destroy();
zombies.splice(k, 1);
}
}
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.