Code edit (1 edits merged)
Please save this source code
User prompt
in the progressminiature's down method, when alpha is set to 1, make it return to alpha 0 after 2 seconds
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: elf is not defined' in or related to this line: 'if (elf.la.alpha == 0) {' Line Number: 525
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: event.stopPropagation is not a function' in or related to this line: 'event.stopPropagation();' Line Number: 540
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: 'la is not defined' in or related to this line: 'self.x -= self.parent.wind;' Line Number: 454
User prompt
Please fix the bug: 'la is not defined' in or related to this line: 'la.anchor.set(0.5, 0.5);' Line Number: 517
Code edit (11 edits merged)
Please save this source code
User prompt
Please fix the bug: 'i is not defined' in or related to this line: 'if (Math.random() < 0.12) {' Line Number: 470
User prompt
Please fix the bug: 'i is not defined' in or related to this line: 'var la = new Text2(levelsAll[i].name, {' Line Number: 511
User prompt
Please fix the bug: 'levelAll is not defined' in or related to this line: 'var la = new Text2(levelsAll[i].name, {' Line Number: 511
User prompt
Please fix the bug: 'levelAll is not defined' in or related to this line: 'var t = new ProgressMiniature(levelAll[i], true);' Line Number: 558
Code edit (3 edits merged)
Please save this source code
User prompt
please ensure the progressScreen paint method removes any preexisting instances of label, checkmarkand quesitonmark before it repaints them.
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (7 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: progressScreen is not defined' in or related to this line: 'if (progressScreen.alpha == 0) {' Line Number: 1130
User prompt
Please fix the bug: 'Uncaught ReferenceError: progressScreen is not defined' in or related to this line: 'if (progressScreen.alpha == 0) {' Line Number: 1130
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'includes')' in or related to this line: 'if (!storage.levelsDiscovered.includes(currentLevel.uid)) {' Line Number: 1054
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'includes')' in or related to this line: 'if (!storage.levelsDiscovered.includes(currentLevel.uid)) {' Line Number: 1054
===================================================================
--- original.js
+++ change.js
@@ -460,12 +460,8 @@
};
});
var ProgressMiniature = Container.expand(function (minLevel, discovered) {
var self = Container.call(this);
- var arrowGraphics = self.attachAsset('progressButton', {
- anchorX: 0.5,
- anchorY: 0.5
- });
if (discovered) {
var t = self.attachAsset('checkMark', {
anchorX: 0.5,
anchorY: 0.5
@@ -478,21 +474,26 @@
}
t.x = 0; //i % 7 * 150;
t.y = 0; //Math.floor(i / 7) * 175;
var index = levelsAll.indexOf(minLevel);
- var la = new Text2(levelsAll[index].name, {
- size: 20,
+ self.la = new Text2(levelsAll[index].name, {
+ size: 40,
fill: 0xffffff,
align: 'center',
font: 'Georgia',
alpha: 0
});
- la.anchor.set(0.5, 0.5);
- la.x = 0;
- la.y = 100;
- self.addChild(la);
- self.mouseover = function () {};
- self.mouseout = function () {};
+ self.la.anchor.set(0.5, 0.5);
+ self.la.x = 0;
+ self.la.y = 100;
+ self.la.alpha = 0;
+ self.addChild(self.la);
+ self.mouseover = function () {
+ self.la.alpha = 1;
+ };
+ self.mouseout = function () {
+ self.la.alpha = 0;
+ };
});
var ProgressScreen = Container.expand(function () {
var self = Container.call(this);
var arrowGraphics = self.attachAsset('levelCompleteBg', {
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.