User prompt
Migrate to the latest version of LK
User prompt
move lifes and gifts 1000 pixels to the right
User prompt
move lifes and gifts 400 pixels to the left
User prompt
move lifes and gift icons an counter to the top right of the screen
User prompt
hazards can appear on any y from the right of the screen
Code edit (1 edits merged)
Please save this source code
User prompt
santa can only collide with rudolph when rudolph is visible
User prompt
add chimney garbage collector
User prompt
add stars gardbage collector
User prompt
increase game performance
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'for (var i = 0; i < chimneys.length; i++) {' Line Number: 284
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'if (chimneys[i].x + chimneys[i].width <= 0) {' Line Number: 270
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'for (var i = chimneys.length - 1; i >= 0; i--) {' Line Number: 269
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'chimneys.forEach(function (chimney) {' Line Number: 246
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'chimneys.push(newChimney);' Line Number: 242
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'var lastChimney = chimneys[chimneys.length - 1];' Line Number: 236
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'if (chimneys.length < maxChimneys) {' Line Number: 235
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'some')' in this line: 'if (distance < speed || this.parent.chimneys.some(chimney => this.intersects(chimney))) {' Line Number: 72
User prompt
santa cant collide with chimeny. if santa touches a chimney he should stop moving
User prompt
make sure santa has 3 lifes and can collide with hazards 3 times before he dies
User prompt
add garbage collector
User prompt
improve perfomance by adding spatial partitioning
User prompt
Fix Bug: 'Uncaught TypeError: LK.showNotification is not a function' in this line: 'LK.showNotification('Auto shoot - ON');' Line Number: 143
User prompt
and message on start saying ''Auto shoot - ON''
User prompt
drop present on double click
===================================================================
--- original.js
+++ change.js
@@ -232,9 +232,9 @@
self.addChild(newStar);
starSpawnCounter = 0;
}
if (self.chimneys.length < maxChimneys) {
- var lastChimney = chimneys[chimneys.length - 1];
+ var lastChimney = self.chimneys[self.chimneys.length - 1];
var chimneySpacing = 500;
if (!lastChimney || lastChimney.x < 2048 - chimneySpacing) {
var newChimney = new Chimney();
newChimney.x = 2048;
8-bit cloud with lightning. in game asset. white cloude. yellow lighning. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8 bit x mas pressent. in game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. cartoon. santa on sledge. smiling. in game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.