User prompt
Now i want the Core Mechanics to : - Player Pawn will switch the color between : Red, Blue, Green, Yellow - 4 Obstacle will come down in random order of colors : Red, Blue, Green, Yellow - Now Player need to hit the obstacle of same color as itself - After hitting the player pawn color again randomly change between : Red, Blue, Green, Yellow - On Each Hit Player will Get One Point
User prompt
instead of Using Random Color use Constant value of : Red, Blue, Green, Yellow And then if the obstacle hitting the pawn is Green : increase the Score else if The obstacle hitting the pawn is Red, Blue, or Yellow : Game Over.
User prompt
Initial Score : 0 Add Score display on To right corner Game over Condition : When player hits the Non-green obstacle Add Logic for Obstacle Color Check.
User prompt
Game should over when player pawn hits an obstacles it should only over when the players score is -1.
User prompt
make a player pawn size little bit wider and change the game logic to collect only green obstacle to increase the score else reduce the score and if the score is less than 0 then game over.
User prompt
make player pawn in box shape
User prompt
Show the score at game over
User prompt
obstacles should come in random colors.
User prompt
Change obstacle to Noisy shapes
User prompt
Make it more realistic
User prompt
Make it like Temple Run Game
User prompt
Make it more hard to play
User prompt
Change Game Machanics to 3d endless runner
Initial prompt
Null Is The Way
===================================================================
--- original.js
+++ change.js
@@ -7,9 +7,9 @@
var obstacleGraphics = self.attachAsset('obstacle', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 5;
+ self.speed = 10;
self.update = function () {
self.y += self.speed;
if (self.y > 2732) {
self.destroy();
@@ -65,9 +65,9 @@
obstacles.push(obstacle);
game.addChild(obstacle);
}
// Set interval to spawn obstacles
-var obstacleInterval = LK.setInterval(spawnObstacle, 1000);
+var obstacleInterval = LK.setInterval(spawnObstacle, 500);
// Game update function
game.update = function () {
for (var i = obstacles.length - 1; i >= 0; i--) {
obstacles[i].update();