Code edit (3 edits merged)
Please save this source code
User prompt
for presentTypeDisplay update Level each time level changes in gamecode
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'var presentName = self.presentNames[Math.floor(Math.random() * self.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught ReferenceError: nameStorage is not defined' in this line: 'self.presentNames = nameStorage.slice();' Line Number: 428
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'parent')' in this line: 'var presentName = self.parent.parent.presentNames[Math.floor(Math.random() * self.parent.parent.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'presentNames')' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Fix Bug: 'Uncaught ReferenceError: gameInstance is not defined' in this line: 'var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];' Line Number: 229
User prompt
Change nameDisplay to use a name from presentname
User prompt
Fix Bug: 'Uncaught ReferenceError: nameDisplay is not defined' in this line: 'var presentDisplay = self.addChild(new presentTypeDisplay(nameDisplay));' Line Number: 467
Code edit (1 edits merged)
Please save this source code
User prompt
in createpresents add separate array that will store each of the presenttype created
User prompt
When createpresent runs create a separate array that stores a randomname from namestore for each present created
User prompt
change displayname so that it reads names randomly from presenttype and displays the name associated present
User prompt
when createpresents is run create an array to assign each present created a random name from namestorage
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -225,9 +225,9 @@
if (self.children.length > 0) {
self.removeChildAt(0);
}
self.addChild(displayGraphic);
- var presentName = self.parent.parent.presentNames[Math.floor(Math.random() * self.parent.parent.presentNames.length)];
+ var presentName = gameInstance.presentNames[Math.floor(Math.random() * gameInstance.presentNames.length)];
nameDisplay.updateName(presentName);
};
self.setRandomPresentTypeIndex();
LK.setInterval(function () {
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.