Code edit (13 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Set is not a constructor' in or related to this line: 'return n;' Line Number: 176
User prompt
Please fix the bug: 'Set is not a constructor' in or related to this line: 'return n;' Line Number: 176
User prompt
Please fix the bug: 'Set is not a constructor' in or related to this line: 'return n;' Line Number: 176
User prompt
Please fix the bug: 'Set is not a constructor' in or related to this line: 'return n;' Line Number: 176
User prompt
Please fix the bug: 'Set is not a constructor' in or related to this line: 'return n;' Line Number: 176
Code edit (5 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: cosole is not defined' in or related to this line: 'cosole.log('levelContainer:', levelContainer);' Line Number: 126
Code edit (1 edits merged)
Please save this source code
Code edit (19 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: tween is not defined' in or related to this line: 'tween(self, {' Line Number: 110 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Arrow is not defined' in or related to this line: 'var arrow = new Arrow();' Line Number: 40
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: visited.has is not a function' in or related to this line: '_iterator.f();' Line Number: 268
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: neighbours is not defined' in or related to this line: 'console.log(neighbours);' Line Number: 254
Code edit (1 edits merged)
Please save this source code
User prompt
in getadjacenttiles, use thecolorboxes' gridx and gridY properties to identify the correct tiles
Code edit (1 edits merged)
Please save this source code
User prompt
getadjacenttiles doesn't seem to correctly identify the coorboxes neighboring the position
User prompt
getadjacentTiles should find and use the colorbox actually positioned a currentlevel[newx][newy], not the currentlevelvalue itself.
Code edit (1 edits merged)
Please save this source code
User prompt
getAdjacentTils should look for tiles in the currentLevel array
===================================================================
--- original.js
+++ change.js
@@ -1,7 +1,14 @@
/****
* Classes
****/
+var Arrow = Container.expand(function () {
+ var self = Container.call(this);
+ var arrowGraphics = self.attachAsset('arrow', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+});
//<Assets used in the game will automatically appear here>
//<Write imports for supported plugins here>
var Board = Container.expand(function () {
var self = Container.call(this);
@@ -28,9 +35,17 @@
}
// paint arrows
for (var i = 0; i < gridSize; i++) {
for (var j = 0; j < gridSize; j++) {
- if (i == 0) {} else if (i == gridSize) {}
+ if (i == 0) {
+ var arrow = new Arrow();
+ arrow.width = boxSize;
+ arrow.height = boxSize * 0.2;
+ arrow.x = offset + startX + i * (boxSize + boxSpacing);
+ arrow.y = startY - boxSpacing;
+ arrow.rotation = Math.PI / 2;
+ self.addChild(arrow);
+ } else if (i == gridSize) {}
if (j == 0) {} else if (j == gridSize) {}
}
}
};
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.