User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 458
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 458
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 456
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 464
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 462
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 460
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 458
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 456
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 458
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 458
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 456
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toggleEmission')' in this line: 'self.particleEffect.toggleEmission(false);' Line Number: 454
User prompt
when popuptext displayed turn off particle effects and displaynamechange. turn on when popuptext cleared
User prompt
add logic to allow control of `emit` for `ParticleEffect` and `updateName` for `DisplayName` to allow them to be stopped and or cleared
User prompt
pause particle effects and namedisplay until popuptext has been cleared
Code edit (1 edits merged)
Please save this source code
User prompt
on game startup do not load game until popuptext has been closed
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'width')' in this line: 'textBoxBg.width = 2048;' Line Number: 8
Code edit (1 edits merged)
Please save this source code
User prompt
for currentpresenttype change code so that when presents are created the number of and type created are stored in an array. Rotate one step through the array each time a present is removed. Display the current present type from the array
User prompt
To ensure that the `presentTypeDisplay` includes the new present type when the level changes, the game logic in the `Game` class should include a call to `setRandomPresentTypeIndex` or a similar method to update the display whenever a new level is started. This would ensure that the present types displayed are always in sync with the current level of the game.
User prompt
Fix Bug: 'TypeError: self.presentTypeDisplay is not a function' in this line: 'self.presentTypeDisplay(presentTypesCount);' Line Number: 573
Code edit (1 edits merged)
Please save this source code
User prompt
when level changes in game code update presentTypeIndex
===================================================================
--- original.js
+++ change.js
@@ -454,9 +454,11 @@
nameDisplay.toggleNameUpdate(true);
self.particleEffect.toggleEmission(true);
} else {
nameDisplay.toggleNameUpdate(false);
- self.particleEffect.toggleEmission(false);
+ if (self.particleEffect && typeof self.particleEffect.toggleEmission === 'function') {
+ self.particleEffect.toggleEmission(false);
+ }
}
};
self.initialized = false;
self.createBonusItem = function (mainContainer) {
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.