User prompt
You can make the speed cap a little bit bigger. We could use a bit more challenge
User prompt
Fix Bug: 'ReferenceError: player is not defined' in this line: 'var shapeSpeed = Math.min(7.2 + Math.floor(player.score / 10), 28.8);' Line Number: 81
User prompt
The game still doesn't work. Review the entire code and make sure you implemented the different 3 characters right, then continue updating the game.
User prompt
The issue is still not solved
User prompt
Fix the error that causes a black screen right now
User prompt
Fix the bugs
User prompt
Fix Bug: 'ReferenceError: player is not defined' in this line: 'scoreTxt.setText(player.score);' Line Number: 86
User prompt
Now let's copy everything we did in the middle to the left and right side. We want to have 3 individual player controlled shapes (one left, one middle and one right) each of them sharing the same score but having individual enemies and only change their shape when clicked on their side.
User prompt
Change the colors to more lively and ligher ones
User prompt
Fix Bug: 'ReferenceError: background is not defined' in this line: 'LK.effects.flashObject(background, 0xFFFFFF, 1000);' Line Number: 82
User prompt
Divide the screen in 3 1/3 sides, color all of them diferently. The player can only change its shape if cliked on the side of the screen where the character is situated.
User prompt
Fix Bug: 'ReferenceError: player is not defined' in this line: 'scoreTxt.setText(player.score);' Line Number: 73
User prompt
Now we will scale everything we did on the middle side for the other 2 sides (the left one and the right one). That means we will create another player character on the left and another on the right, both of them having their own obstacles.
User prompt
Fix Bug: 'ReferenceError: background is not defined' in this line: 'LK.effects.flashObject(background, 0xFFFFFF, 1000);' Line Number: 82
User prompt
Make it so you can only change the shape of the player if you click on the side of the screen where it is situated
User prompt
Change the colours to more lively ones
User prompt
Divide the game area in 3 1/3 sides (1/3 left, 1/3 middle and 1/3 right) and mark them (have them have different background colours for example)
User prompt
Fix the newly created bugs
User prompt
Fix Bug: 'ReferenceError: player is not defined' in this line: 'scoreTxt.setText(player.score);' Line Number: 84
User prompt
Now you will furtherly develop the game by making so there is a player on each of the 3 sides of the screen,
User prompt
Fix Bug: 'ReferenceError: background is not defined' in this line: 'LK.effects.flashObject(background, 0xFFFFFF, 1000);' Line Number: 82
User prompt
Make it so the character changes its shape only when you click the adequate side of the screen (the one which it is in, so the middle one)
User prompt
Divide the screen in 1/3 parts, and mark them (1/3 left, 1/3 middle, 1/3 right)
User prompt
I did not mean that. I mean't that the switch function only works on the middle side of the screen
User prompt
Divide the screen in 3 sides (1/3 left, 1/3 middle, 1/3 right) and make it so the shape only changes if you click on it's side of the screen
===================================================================
--- original.js
+++ change.js
@@ -29,19 +29,19 @@
var gameStarted = false;
var leftBackground = self.createAsset('backgroundAsset', 'Left Background Graphics', 0, 0);
leftBackground.width = 2048 / 3;
leftBackground.height = 2732;
- leftBackground.tint = 0xFF0000;
+ leftBackground.tint = 0xFF7F50;
var middleBackground = self.createAsset('backgroundAsset', 'Middle Background Graphics', 0, 0);
middleBackground.width = 2048 / 3;
middleBackground.height = 2732;
middleBackground.x = 2048 / 3;
- middleBackground.tint = 0x00FF00;
+ middleBackground.tint = 0xADFF2F;
var rightBackground = self.createAsset('backgroundAsset', 'Right Background Graphics', 0, 0);
rightBackground.width = 2048 / 3;
rightBackground.height = 2732;
rightBackground.x = 2048 / 3 * 2;
- rightBackground.tint = 0x0000FF;
+ rightBackground.tint = 0x1E90FF;
var shapes = [];
var player = self.addChild(new Player());
player.x = 2048 / 2;
player.y = 2732 - player.playerGraphics.height;