User prompt
make the enemy stay at the middle top of the screen
User prompt
make the wall count to 1
User prompt
make the enemy to the top of the screen
User prompt
make the wall longer to y
User prompt
make the wall chilling at the top of the screen and bottom of the enemy
User prompt
make the red flash is displayed longer to 3 seconds
User prompt
make the wall count to 1
User prompt
make the enemy chilling at the top of the screen
User prompt
make the enemy to 1
User prompt
make the enemy count to 1
Initial prompt
BEDROOM OF DOOM
===================================================================
--- original.js
+++ change.js
@@ -64,16 +64,14 @@
enemy.y = 0;
enemies.push(enemy);
game.addChild(enemy);
}
- // Create maze walls
- for (var j = 0; j < 10; j++) {
- var wall = new Wall();
- wall.x = Math.random() * 2048;
- wall.y = Math.random() * 2732;
- walls.push(wall);
- game.addChild(wall);
- }
+ // Create maze wall
+ var wall = new Wall();
+ wall.x = Math.random() * 2048;
+ wall.y = Math.random() * 2732;
+ walls.push(wall);
+ game.addChild(wall);
// Initialize score text
scoreTxt = new Text2('Score: 0', {
size: 100,
fill: "#ffffff"