Code edit (7 edits merged)
Please save this source code
User prompt
each time the score increases by 50, spawning badelves should become 10% faster
Code edit (6 edits merged)
Please save this source code
User prompt
Fix Bug: 'timeout callback must be a function' in this line: 'LK.setInterval(Math.random() * (5000 - 2500));' Line Number: 381
Code edit (1 edits merged)
Please save this source code
Code edit (11 edits merged)
Please save this source code
User prompt
if (LK.getScore() < 50) { LK.setInterval(self.spawnBadElf, Math.random() * (5000 - 3000));
Code edit (6 edits merged)
Please save this source code
User prompt
if score is less than 50 LK.setInterval(self.spawnBadElf, Math.random() * (6000 - 3000) + 3000);
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
if score is equal or lower than 50 set self.activeBadElves < 2 if score is equal or higher than 125 set self.activeBadElves < 3 if score is equal or higher than 175 set self.activeBadElves < 4 if score is equal or higher than 250 set self.activeBadElves < 5 if score is equal or higher than 300 set self.activeBadElves < 6
Code edit (8 edits merged)
Please save this source code
User prompt
if score is equal or lower than 50 self.activeBadElves < 2 if score is equal or lower than 125 self.activeBadElves < 3 if score is equal or lower than 175 self.activeBadElves < 4 if score is equal or lower than 250 self.activeBadElves < 5 if score is equal or higherthan 300 self.activeBadElves < 6
Code edit (5 edits merged)
Please save this source code
User prompt
box layer should be below badelf
Code edit (1 edits merged)
Please save this source code
User prompt
create a fourth spawn location called rooftop and add it to the list rooftop is located at x400 and y1800
User prompt
var Shield = Container.expand(function (x, y, gameInstance) { var self = Container.call(this); self.gameInstance = gameInstance; self.x = x; self.y = y; self.on('down', function () { this.destroy(); var shield = var EvilRobot
User prompt
create a new gameplay element named `EvilRobot` not as a copy of badelf
User prompt
Create a new class named `EvilRobot`
User prompt
create a duplicate of badelf and call it evilelf, make sure all of the code also is copied, this will be a new enemy
User prompt
Fix Bug: 'TypeError: self.gameInstance.getScore is not a function' in this line: 'var speed = 10 + Math.floor(self.gameInstance.getScore() / 100);' Line Number: 155
User prompt
increase magic speed based on score
User prompt
accelerate badelf spawning based on score
===================================================================
--- original.js
+++ change.js
@@ -151,9 +151,9 @@
var dx = santaX - self.x;
var dy = santaY - self.y;
var distance = Math.sqrt(dx * dx + dy * dy);
var hitThreshold = 10000;
- var speed = 10;
+ var speed = 10 + Math.floor(self.gameInstance.getScore() / 100);
if (distance > 0) {
var normX = dx / distance;
var normY = dy / distance;
self.x += normX * speed;
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