User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'y')' in or related to this line: 'obstacles[i].y += gameSpeed;' Line Number: 1136
User prompt
Reduce starfield
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1209
User prompt
Reduce just a little the trail
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1212
User prompt
Use lazy loading for assets
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'obstacle')' in or related to this line: 'if (!LK.assets['obstacle']) {}' Line Number: 1293
User prompt
Use bounding boxes for collision detection
User prompt
Please fix the bug: 'TypeError: Cannot read properties of null (reading 'x')' in or related to this line: 'trail.x = leftPlayer.x;' Line Number: 1232
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1217
User prompt
Bounding boxes should have a 10% of forgiveness
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1219
User prompt
Refactor how left and rigth player are initialized
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of null (reading 'x')' in or related to this line: 'trail.x = leftPlayer.x;' Line Number: 1234
User prompt
Do not allow player to swipe down again while split
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1219
User prompt
Redcue a little the starfield
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1223
User prompt
Bigobstacme shoudl completely appear from offscreen
User prompt
When an obstacle comes after bigobstacle give them twice the space
User prompt
Initialize rigth and left player outside of the game function
User prompt
Refactor how left and right player are created to make it more perfomant
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'visible')' in or related to this line: 'rightPlayer.visible = false;' Line Number: 1231
User prompt
Add overlay behind main menu
===================================================================
--- original.js
+++ change.js
@@ -1457,9 +1457,9 @@
coins.push(coinRight);
game.addChild(coinRight);
}
var starfield = [];
-for (var i = 0; i < 50; i++) {
+for (var i = 0; i < 25; i++) {
var star = new Star();
star.x = Math.random() * 2048;
star.y = Math.random() * 2732;
starfield.push(star);
cartoon white circle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon light blue circle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon white square. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
black rectangle