Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'levelNameLabel is not defined' in or related to this line: 'if (Math.random() < 0.12) {' Line Number: 403
User prompt
Please fix the bug: 'levelNameLabel is not defined' in or related to this line: 'levelNameLabel.setText(a.name, ' ', a.uid);' Line Number: 984
Code edit (9 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'var n = source[0].length;' Line Number: 1219
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'length')' in or related to this line: 'var m = source.length;' Line Number: 1218
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'var gridSize = currentLevel.d.length;' Line Number: 1087
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'for (var j = 0; j < a.d[0].length; j++) {' Line Number: 965
User prompt
Please fix the bug: 'levels[currentLevelID].map is not a function' in or related to this line: 'for (var i = 0; i < a.d.length; i++) {' Line Number: 964
User prompt
Please fix the bug: 'levels[currentLevelID].map is not a function' in or related to this line: 'var currentLevel = levels[currentLevelID].map(function (arr) {' Line Number: 935
Code edit (1 edits merged)
Please save this source code
Code edit (5 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'tint')' in or related to this line: 'self.boxGraphics.tint = 0x222222;' Line Number: 152
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'tint')' in or related to this line: 'self.boxGraphics.tint = 0xffffff;' Line Number: 146
Code edit (1 edits merged)
Please save this source code
Code edit (21 edits merged)
Please save this source code
User prompt
Please fix the bug: 'instructions is not defined' in or related to this line: 'game.addChild(instructions);' Line Number: 761
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: particleGraphics.setScale is not a function' in or related to this line: 'particleGraphics.setScale(sc, sc);' Line Number: 314
Code edit (1 edits merged)
Please save this source code
Code edit (13 edits merged)
Please save this source code
User prompt
please make the particles move upwards in a wavy pattern instead of straight like now. Use individual amplitude for particles so they don't all move exactly the same.
User prompt
Please fix the bug: 'ReferenceError: particleGraphicsGraphics is not defined' in or related to this line: 'self.addChild(particleGraphicsGraphics);' Line Number: 313
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'if (self.particles.length < self.particlesMax) {' Line Number: 329
===================================================================
--- original.js
+++ change.js
@@ -934,26 +934,29 @@
var boxSpacing = boxSize * spacingRatio;
var offset = boxSize / 2 + boxSpacing;
var delayCounter = 0;
for (var i = 0; i < a.length; i++) {
- for (var j = 0; j < a.d[0].length; j++) {
- if (a.d[j][i] != 0) {
- var cBox = levelContainer.addChild(new ColorBox(a.d[j][i]));
- cBox.width = cBox.height = boxSize;
- //cBox.x = offset + startX + i * (boxSize + boxSpacing);
- //cBox.y = offset + startY + j * (boxSize + boxSpacing);
- cBox.gridX = i;
- cBox.gridY = j;
- var destX = offset + startX + i * (boxSize + boxSpacing);
- var destY = offset + startY + j * (boxSize + boxSpacing);
- var delayFactor = delayCounter;
- delayCounter += 60;
- //cBox.x = -1500;
- //cBox.y = destY;
- cBox.enterBoard(destX, destY, delayFactor);
+ if (a.d && a.d[0]) {
+ // Check if a.d and a.d[0] are defined
+ for (var j = 0; j < a.d[0].length; j++) {
+ if (a.d[j][i] != 0) {
+ var cBox = levelContainer.addChild(new ColorBox(a.d[j][i]));
+ cBox.width = cBox.height = boxSize;
+ //cBox.x = offset + startX + i * (boxSize + boxSpacing);
+ //cBox.y = offset + startY + j * (boxSize + boxSpacing);
+ cBox.gridX = i;
+ cBox.gridY = j;
+ var destX = offset + startX + i * (boxSize + boxSpacing);
+ var destY = offset + startY + j * (boxSize + boxSpacing);
+ var delayFactor = delayCounter;
+ delayCounter += 60;
+ //cBox.x = -1500;
+ //cBox.y = destY;
+ cBox.enterBoard(destX, destY, delayFactor);
+ }
}
}
- }
+ } // Close the if block
return delayCounter;
}
var initDelay = paintLevel(currentLevel);
if (!storage.instructionsShown) {
A large calm background drawing for a puzzle game, in dark calm blueish colors and non-confusing content. High definition. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A quadratic polished dark blue marble slate. Front perspective with right angles. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A white question mark in a circle, like for a help button in a game.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A white X in a circle, like for a close window button in a game. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A white questionmark on a black background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A green check mark on a dark background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.