User prompt
Please fix the bug: 'maze1 is not defined' in or related to this line: 'if (maze1[i][j] == 1) {' Line Number: 40
User prompt
Make the wall on all the yellow lines of the image maze1 with same scale.
User prompt
Add the wall and player to the game
User prompt
Make walls similar as in the image of maze1
User prompt
Make the screen image always smooth and clearer each time of loading the game or new level.
User prompt
Make it 1000x1000 and fit it to the screen
User prompt
Make maze1 the background in the first level1
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: player is not defined' in or related to this line: 'if (player.intersects(wall1a) || player.intersects(wall1b) || player.intersects(wall1c) || player.intersects(wall1d)) {' Line Number: 102
User prompt
Please fix the bug: 'ReferenceError: player is not defined' in or related to this line: 'if (player.intersects(wall1a) || player.intersects(wall1b) || player.intersects(wall1c) || player.intersects(wall1d)) {' Line Number: 102
User prompt
Fix the game
User prompt
Remove second player and reposition the first player again in the bottom middle .
User prompt
Make the respawning of wall1 random with random shapes from anywhere on the side.
User prompt
Increase speed of walls for each level
User prompt
Make the wall2 small and increase the respawning of it in level 2.
User prompt
Add game over to the game if player touch any wall in any level trigger game over.
User prompt
If player touch gate in level2 teleport it to level3 so on
User prompt
Add collision to wall2-10
User prompt
Add collision to gate in level2
User prompt
Add collision to gate in each level
User prompt
Add player to other levels
User prompt
Increase speed of the player
User prompt
Make it move when click not teleport to the point
User prompt
Increase speed of player
User prompt
Don't move player to level 2 teleport it to level 2 when touch the gate in level 1
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ var background = game.addChild(LK.getAsset('maze1', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 })); background.scale.x = game.width / background.width; background.scale.y = game.height / background.height;
===================================================================
--- original.js
+++ change.js
@@ -11,10 +11,8 @@
var background = game.addChild(LK.getAsset('maze1', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
- y: 2732 / 2,
- width: 1000,
- height: 1000
+ y: 2732 / 2
}));
background.scale.x = game.width / background.width;
background.scale.y = game.height / background.height;
\ No newline at end of file