Code edit (4 edits merged)
Please save this source code
Code edit (17 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: path.setupPlayer is not a function' in or related to this line: 'path.setupPlayer(player);' Line Number: 393
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: LK.playSound is not a function' in or related to this line: 'LK.playSound('step_disappear');' Line Number: 232
User prompt
when a path step disapear, a sound fx should be played.
===================================================================
--- original.js
+++ change.js
@@ -44,9 +44,9 @@
var Path = Container.expand(function (level) {
var self = Container.call(this);
self.setupPlayer = function (player) {
self.curStep = 0;
- for (var i = 0; i < 3; i++) {
+ for (var i = 0; i < 2; i++) {
self.nextStep();
}
if (self.pathPositions && self.pathPositions[0]) {
player.init(self.pathPositions[0].x, self.pathPositions[0].y);
@@ -243,9 +243,9 @@
}
};
self.setupPlayer = function (player) {
self.curStep = 0;
- for (var i = 0; i < 3; i++) {
+ for (var i = 0; i < 2; i++) {
self.nextStep();
}
if (self.pathPositions && self.pathPositions[0]) {
player.init(self.pathPositions[0].x, self.pathPositions[0].y);
@@ -382,11 +382,11 @@
/****
* Game Code
****/
-// Initialize background stars
-// Initialize obstacle asset
// Initialize player ship asset
+// Initialize obstacle asset
+// Initialize background stars
function showCongratsPopup() {
game.removeChild(path);
game.removeChild(player);
path = new Path(path.level + 1);
tête de mort rouge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tête de mort coter droit en bleu coter gauche en rouge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tourbillon bleu et rouge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bone. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tourbillon rouge et bleu. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.