User prompt
Make the hero always move towards last touch point.
User prompt
If the player got hit by the zombie, then that is game over.
User prompt
Let's add the second layer of the background, or the sky, please.
User prompt
Move the hero from left and right through player inputs.
User prompt
Let's edit the background with an open road for the player to move.
User prompt
Let's add the background, like, for example, a city, please.
User prompt
Let's add a combo multiplier. Every time you shoot the zombie, you get a combo. More combos, more points.
User prompt
Let's choose classes. Every time you choose a class, you get new weapons for shooting zombies.
User prompt
Let's add the score to Killing the Zombies.
Initial prompt
Simply Zombies
===================================================================
--- original.js
+++ change.js
@@ -58,8 +58,9 @@
player.y = 2500; // Near bottom
var zombies = [];
var bullets = [];
var score = 0;
+var combo = 0;
var scoreTxt = new Text2(score.toString(), {
size: 150,
fill: "#ffffff"
});
@@ -103,8 +104,9 @@
if (bullets[j].y < 0) {
// Off screen
bullets[j].destroy();
bullets.splice(j, 1);
+ combo = 0; // Reset combo multiplier when a bullet misses
}
}
// Check for bullet-zombie collisions
for (var b = bullets.length - 1; b >= 0; b--) {
@@ -113,9 +115,10 @@
bullets[b].destroy();
bullets.splice(b, 1);
zombies[z].destroy();
zombies.splice(z, 1);
- score += 1;
+ combo += 1; // Increase combo multiplier on zombie kill
+ score += combo; // Increase score by combo multiplier
LK.setScore(score);
scoreTxt.setText(score.toString());
if (score === 10) {
player.destroy();
Soldier in a zombie infested world. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Bullet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Open road in a city that is plagued by zombies. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
zombie. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Orange coved sky for the zombie infested town. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.