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
@@ -52,9 +52,9 @@
/****
* Game Code
****/
-var player = game.addChild(new Player());
+var player = game.addChild(new Player('player'));
player.x = 1024; // Center horizontally
player.y = 2500; // Near bottom
var zombies = [];
var bullets = [];
@@ -116,8 +116,19 @@
zombies.splice(z, 1);
score += 1;
LK.setScore(score);
scoreTxt.setText(score.toString());
+ if (score === 10) {
+ player.destroy();
+ player = game.addChild(new Player('playerType2'));
+ player.x = 1024; // Center horizontally
+ player.y = 2500; // Near bottom
+ } else if (score === 20) {
+ player.destroy();
+ player = game.addChild(new Player('playerType3'));
+ player.x = 1024; // Center horizontally
+ player.y = 2500; // Near bottom
+ }
break;
}
}
}
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.