User prompt
please place an instance of the gamelogo center screen top
Code edit (3 edits merged)
Please save this source code
User prompt
please loop the testmusic instead of the background music
User prompt
make a background music asset to be looped continously
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'map')' in or related to this line: 'currentLevel = levels[currentLevelID].map(function (arr) {' Line Number: 960
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'map')' in or related to this line: 'currentLevel = levels[currentLevelID].map(function (arr) {' Line Number: 960
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'var n = source[0].length;' Line Number: 793
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: ty is not defined' in or related to this line: 'console.log('startx and y:', t.x, ty);' Line Number: 139
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
please use the backgrounfimage asset as a background by adding it just before the scorelabel is added
Code edit (13 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: arr.slice is not a function' in or related to this line: 'return arr.slice();' Line Number: 858
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: arr.slice is not a function' in or related to this line: 'return arr.slice();' Line Number: 853
Code edit (16 edits merged)
Please save this source code
User prompt
Please fix the bug: 'l5 is not defined' in or related to this line: 'var levels = [l1a, l5a, l1b, l1c, l1d, l1e, l1f, l1g, l2a, l2b, l2c, l2d, l2e, l2f, l2g, l3a, l4a, l5];' Line Number: 444
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (11 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -125,10 +125,10 @@
//console.log("Animation complete!");
//console.log('currentLevel:', currentLevel);
//console.log('levelContainer:', levelContainer);
playerScore++;
- var t = new Star(levelContainer.x + self.x, levelContainer.y + self.y, 1900, 100, 0);
- console.log('startx and y:', t.x, t.y);
+ var t = new Star(levelContainer.x + self.x, levelContainer.y + self.y, 1900, 50, 0, colors[self.colorIndex]);
+ //console.log('startx and y:', t.x, t.y);
game.addChild(t);
stars.push(t);
updateScoreLabels();
numRunningTweens--;
@@ -222,41 +222,42 @@
}
});
};
});
-var Star = Container.expand(function (startX, startY, endX, endY, delay) {
+var Star = Container.expand(function (startX, startY, endX, endY, delay, boxTint) {
var self = Container.call(this);
//GoldCoin.delayIncrement = 0;
//self.game = this;
var starGraphics = self.attachAsset('star', {
anchorX: 0.5,
- anchorY: 0.5
+ anchorY: 0.5,
+ tint: boxTint
});
self.addChild(starGraphics);
self.x = startX;
self.y = startY;
self.isDead = false;
var distance = Math.sqrt(Math.pow(endX - startX, 2) + Math.pow(endY - startY, 2));
self.delayCounter = delay * 2;
var duration = 30 + delay;
- var vx = (endX - startX) / duration;
- var vy = (endY - startY) / duration;
+ //var vx = (endX - startX) / duration;
+ //var vy = (endY - startY) / duration;
self.alpha = 0;
- self.path = createQuadraticBezierArcPoints(startX, startY, endX, startY - 100, endX, endY, 60);
+ //self.path = createQuadraticBezierArcPoints(startX, startY, endX, startY - 100, endX, endY, 60);
+ self.path = createQuadraticBezierArcPoints(startX, startY, endX, startY + 200, endX, endY, 30);
self._move_migrated = function () {
if (self.delayCounter > 0) {
self.delayCounter--;
} else {
self.alpha = 1;
- //self.rotation += 0.01;
+ self.rotation += 0.11;
if (self.path[duration]) {
self.x = self.path[duration - self.delayCounter][0];
self.y = self.path[duration - self.delayCounter][1];
}
}
if (--duration <= 0) {
self.destroy();
- return;
self.isDead = true;
}
};
});
@@ -472,9 +473,9 @@
board.x = 1024;
board.y = 2732 / 2;
game.addChild(board);
// 0 black 1 white 2 yellow 3 red 4 blue 5 green 6 purple 7 grey 8 brown 9 skin
-var colors = ['0x000000', '0xffffff', '0xffff00', '0xff0000', '0x000066', '0x00ff00', '0xff00ff', '0xbbbbbb', '0x827364', '0xecbcb4'];
+var colors = ['0x000000', '0xffffff', '0xffff00', '0xff0000', '0x0000bb', '0x00ff00', '0xff00ff', '0xbbbbbb', '0x827364', '0xecbcb4'];
// 5x5 levels.
var l1a = [[0, 0, 0, 0, 0], [0, 0, 1, 0, 0], [0, 1, 2, 1, 0], [0, 0, 1, 0, 0], [0, 0, 0, 0, 0]];
var l1b = [[0, 0, 0, 0, 0], [0, 0, 4, 0, 0], [0, 5, 4, 5, 0], [0, 5, 0, 5, 0], [0, 0, 0, 0, 0]];
var l1c = [[0, 0, 0, 0, 0], [0, 3, 0, 3, 0], [0, 0, 2, 0, 0], [0, 3, 0, 3, 0], [0, 0, 0, 0, 0]];
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.