User prompt
badelf shoot elfbullets every 2-5 seconds
User prompt
where are the elfbullet they are not visible right now on screen
User prompt
elf bullets are not spawning correctly fix it
User prompt
fix elfbullets not being visible
User prompt
badelf instantiated should shoot elfbullets starting from their position towards santa
User prompt
when a badelf is spawned they should shoot elfbullets starting from thebadelf position every 2 to 5 seconds at santas position
User prompt
where are the elfbullets? I don't see them
User prompt
elf bullets should be fired at santas position only from the current visible badelf
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'santa')' in this line: 'if (self.gameInstance.santa) {' Line Number: 65
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'santa')' in this line: 'if (this.gameInstance.santa) {' Line Number: 65
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'santa')' in this line: 'if (gameInstance.santa) {' Line Number: 65
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'santa')' in this line: 'var bullet = new ElfBullet(this.x + this.width / 2, this.y + this.height / 2, gameInstance.santa.x, gameInstance.santa.y);' Line Number: 65
User prompt
the elfbullet should spawn from badelf position and head towards santa
User prompt
elf bullet should start from the elf themselves,
User prompt
elf bullet starts from badelf and not the top of the screen
User prompt
Fix Bug: 'Timeout.tick error: gameInstance is not defined' in this line: 'self.gameInstance = gameInstance;' Line Number: 82
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'addChild')' in this line: 'self.gameInstance.addChild(bullet);' Line Number: 66
User prompt
Fix Bug: 'Timeout.tick error: this.addChild is not a function' in this line: 'this.addChild(bullet);' Line Number: 66
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'addChild')' in this line: 'this.gameInstance.addChild(bullet);' Line Number: 66
User prompt
Fix Bug: 'Timeout.tick error: this.parent.addChild is not a function' in this line: 'this.parent.addChild(bullet);' Line Number: 66
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'addChild')' in this line: 'this.gameInstance.addChild(bullet);' Line Number: 66
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'addChild')' in this line: 'this.gameInstance.addChild(bullet);' Line Number: 66
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'addChild')' in this line: 'self.gameInstance.addChild(bullet);' Line Number: 66
User prompt
if badelf are present on screen, i want them to shoot one bullet at santas head every 1 to 4 seconds
User prompt
make badelf spawn closer
===================================================================
--- original.js
+++ change.js
@@ -62,9 +62,9 @@
var self = Container.call(this);
self.gameInstance = gameInstance;
self.shoot = function () {
var bullet = new ElfBullet(this.x, this.y, this);
- self.gameInstance.addChild(bullet);
+ self.parent.addChild(bullet);
LK.on('tick', bullet.move.bind(bullet));
};
LK.setInterval(self.shoot, Math.random() * (4000 - 1000) + 1000);
var badElfGraphics = self.createAsset('badElf', 'Mischievous Elf', 0.5, 0.5);
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