User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'nameDisplay')' in this line: 'gameInstance.nameDisplay.updateName(randomName);' Line Number: 231
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'nameDisplay')' in this line: 'gameInstance.nameDisplay.updateName(randomName);' Line Number: 231
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'nameDisplay')' in this line: 'gameInstance.nameDisplay.updateName(randomName);' Line Number: 231
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'nameDisplay')' in this line: 'gameInstance.nameDisplay.updateName(randomName);' Line Number: 231
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'nameDisplay')' in this line: 'gameInstance.nameDisplay.updateName(randomName);' Line Number: 231
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'nameDisplay')' in this line: 'gameInstance.nameDisplay.updateName(randomName);' Line Number: 231
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'nameDisplay')' in this line: 'this.parent.nameDisplay.updateName(randomName);' Line Number: 230
User prompt
Fix Bug: 'Uncaught ReferenceError: nameDisplay is not defined' in this line: 'nameDisplay.updateName(randomName);' Line Number: 230
User prompt
Fix Bug: 'Uncaught ReferenceError: Level is not defined' in this line: 'var presentDisplay = self.addChild(new presentTypeDisplay(Level));' Line Number: 527
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.presentDisplay.pushLevel is not a function' in this line: 'self.presentDisplay.pushLevel(level);' Line Number: 563
User prompt
when level changes push level to presenttypedisplay
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'x')' in this line: 'self.presentDisplay.x = 450;' Line Number: 473
User prompt
Fix Bug: 'Cannot set properties of undefined (setting 'x')' in this line: 'self.presentDisplay.x = 450;' Line Number: 472
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'x')' in this line: 'self.presentDisplay.x = 450;' Line Number: 472
User prompt
Fix Bug: 'TypeError: gameInstance.getCurrentPresentType is not a function' in this line: 'var currentDisplayType = gameInstance.getCurrentPresentType();' Line Number: 257
User prompt
Fix Bug: 'TypeError: gameInstance.getCurrentPresentType is not a function' in this line: 'var currentDisplayType = gameInstance.getCurrentPresentType();' Line Number: 254
User prompt
when level changes feed back to presentDisplaytype the new level
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'x')' in this line: 'self.presentDisplay.x = 450;' Line Number: 473
User prompt
Fix Bug: 'Cannot set properties of undefined (setting 'x')' in this line: 'self.presentDisplay.x = 450;' Line Number: 472
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'x')' in this line: 'self.presentDisplay.x = 450;' Line Number: 472
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
for presentTypeDisplay update Level each time level changes in gamecode
===================================================================
--- original.js
+++ change.js
@@ -228,8 +228,12 @@
self.addChild(displayGraphic);
var randomName = nameStorage[Math.floor(Math.random() * nameStorage.length)];
nameDisplay.updateName(randomName);
};
+ self.setNewLevel = function (newLevel) {
+ presentTypesCount = newLevel;
+ self.setRandomPresentTypeIndex();
+ };
self.setRandomPresentTypeIndex();
LK.setInterval(self.setRandomPresentTypeIndex, (Math.random() * (9 - 3) + 3) * 1000);
});
var Present = Container.expand(function (type) {
@@ -539,8 +543,9 @@
self.presents.push(presentType);
}
}
};
+ self.presentDisplay.setNewLevel(level);
self.createPresents(presentTypesCount, mainContainer);
LK.on('tick', function () {
for (var i = self.presents.length - 1; i >= 0; i--) {
var present = self.presents[i];
basic snowflake. white Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
open top of Santa's sack. wrapped presents with ribbons and box, vivid colours, candy canes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
close up of a Snow covered roof, Winter scene, star lit night sky, brick chimbly on right hand side, Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top 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.
stary night sky.dark blue. no land. only sky 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.
gift wrapped box, vivid colours. with bow on top 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. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top 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.
gift wrapped box, vivid colours. with bow on top 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.
Candy cane, vivid colours. with bow on top 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.
gift wrapped box, vivid colours. with bow on top 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.
gift wrapped box, vivid colours. with bow on top 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.
old paper scroll, blank with no writing, Single Game Texture. In-Game asset. 2d. transparent Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
rudolf the red nose raindeer Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, bright colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
gift wrapped box, bright light colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
Santa's sleigh with a team of reindeer moving across a star light sky. 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.