User prompt
fix this countdown timer to reset once it hits 0
User prompt
make sure the countdown is always running
User prompt
when the countdown hits 0, spawn a badelf and restart the countdown
User prompt
start a 10 seconds countdown when a badelf is created
User prompt
every 100 points, spawn an extra mistletoe
User prompt
every minute spawn an additional mistletoe somewhere on the screen
Code edit (5 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 567
Code edit (5 edits merged)
Please save this source code
User prompt
ix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);'
User prompt
fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);'
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 548
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 548
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 573
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 577
Code edit (5 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'y')' in this line: 'heart.y = santa.y - santa.santaGraphics.height - heart.height / 2 + 350;' Line Number: 276
Code edit (9 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: barn is not defined' in this line: 'console.log("Barn Object" + barn);' Line Number: 160
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 565
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 569
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'x')' in this line: 'var extraBadElf = new BadElf(location.x, location.y, self);' Line Number: 565
===================================================================
--- original.js
+++ change.js
@@ -374,10 +374,10 @@
LK.clearInterval(self.badElfSpawnTimer);
self.badElfSpawnTimer = LK.setInterval(self.spawnBadElf, self.badElfSpawnInterval);
}
};
- self.badElfSpawnInterval = 3500;
- self.minimumSpawnInterval = 500;
+ self.badElfSpawnInterval = 3250;
+ self.minimumSpawnInterval = 750;
self.badElfSpawnTimer = LK.setInterval(self.spawnBadElf, self.badElfSpawnInterval);
}
}, fadeOutDuration * fadeOutStep);
self.generateMistletoes = function () {
@@ -544,9 +544,11 @@
if (Math.random() < 0.2) {
for (var i = 0; i < 2; i++) {
var locationIndex = Math.floor(Math.random() * availableLocations.length);
var location = availableLocations.splice(locationIndex, 1)[0];
- var extraBadElf = new BadElf(location.x, location.y, self);
+ if (location) {
+ var extraBadElf = new BadElf(location.x, location.y, self);
+ }
self.addChildAt(extraBadElf, self.getChildIndex(boxBackground) + 1);
self.activeBadElves++;
}
}
over the shoulder santa firing a revolver Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d transparent christmas crosshair Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d 3rd person front view of a christmas town square with a starry sky Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Christmas sparkles png Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
circular christmas golden star pattern transparent png Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d christmas brick wall Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d opened christmas crate Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d diagonal christmas car or truck in snow Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a christmas poster showcasing miss santa clause Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a single white snowflake Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d stacked christmas winter tire Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d stacked christmas winter tire Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d christmas magical mistletoe Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d christmas 357 Magnum bullets Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d silhouette of a flying reindeer with a red glowy nose Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d christmas dark sparkles Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d christmas evil robot elf with a gun 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.
2d pile of gray and red nuts and bolts Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
transparent snow sphere. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
snd_pistol
Sound effect
snd_enemyshot
Sound effect
snd_obstacle
Sound effect
snd_messages
Sound effect
snd_ricochet
Sound effect
snd_reindeer
Sound effect
snd_mistletoe
Sound effect
snd_reindeershot
Sound effect
snd_mistletoeshot
Sound effect
snd_christmasmusic
Music
snd_reload
Sound effect
snd_blastwave
Sound effect