User prompt
so it seams things are coming along, however we need to ensure the alien's inner health bar, reflects his health. If he takes a hit, it should lower his inner health bar in proportion
User prompt
Please fix the bug: 'TypeError: alienHealthBar is undefined' in or related to this line: 'alienHealthBar.setHealth(alienHealthBar.currentHealth - 1);' Line Number: 215
User prompt
Please fix the bug: 'ReferenceError: alienHealthBar is not defined' in or related to this line: 'alienHealthBar.setHealth(alienHealthBar.currentHealth - 1);' Line Number: 215
User prompt
Please fix the bug: 'TypeError: target is undefined' in or related to this line: 'var dx = self.x - target.x;' Line Number: 233
User prompt
Please fix the bug: 'ReferenceError: boss is not defined' in or related to this line: 'if (!self.lastIntersecting && self.intersects(boss)) {' Line Number: 214
User prompt
can you make sure, that the bones collide with the boss. use drastic measure to ensure that collision happens. If a bone hits the alien we need it detected so we can lower his health and emit boss hit sounds. Atm the bones are flying over him even though they are in his hitbox dead center. The collsion is not registering, figure out what the problem is and ensure this works once and for all
User prompt
the bones are flying over the boss. they should be doing damage wtf is going on
User prompt
Similarly to the mechanic of mishnu taking damage when the laser connects with her, we want the alien to take damage when bones connect with him. Also bones need to begin fade out of existence after 6 secs
User prompt
the bones are still not colliding with the alien. why is this?
Code edit (1 edits merged)
Please save this source code
User prompt
Look this is simple. Bones function similarly to lasers. If bones hit the boss, then the boss looses health. The boss has lasers for ammo, and they work perfect. In this case mishnu uses bones for ammo to damage the bosse's health. Figure out why are bones are flying over the alien and not colliding, causing the boss damage. If bone hits boss, boss looses a hit point. THe boss emits one of the 3 boss_hit sounds. And the bone disappears on contact. Does that make sense?
User prompt
bones are not colliding with out boss as they should. ensure that it works
User prompt
Please fix the bug: 'ReferenceError: bones is not defined' in or related to this line: 'bones.forEach(function (bone) {' Line Number: 458
User prompt
when a bone hits the boss, he looses one health, and emits a randomly chosen sound either: Boss_Hit, Boss_hit-2, or Boss_hit3
User prompt
scale bosses health bar down by half, and place it a bit higher up on y axis
User prompt
The boss has a health bar. This health bar will be crafted visually in the same way as mishnu's health bar. Except it is not related. This is the bosse's health bar and sits above the boss. It will be scaled slightly smaller. The bosse's max health = Level # times 2. Boss will start with max health.
Code edit (2 edits merged)
Please save this source code
User prompt
Now we implement a health bar for our alien. The Alien Health bar will sit above the alien. The entire thing is scaled slightly smaller than our global health bar. THere is no need for text just the same composition visually for inner health bar and its frame. This will be the health of the alien. Which is calculated by multiplying the level we are on by 2
User prompt
LK.init.image('Stars' is the image that needs to be used for the stars effect on the bones
Code edit (1 edits merged)
Please save this source code
User prompt
Bones actually are thrown in direction opposite to cursor
User prompt
Bone_1 scaled a bit bigger. Bone_2 scale even bigger. Bones despawn and fade out of scene after 6 seconds.
User prompt
only when a boss is present, mishnu shoots out in direction of pointer: Bones. It will shoot bones at random intervals similarly to how the alien shoots lasers. Most of the time it will use image Bone_1, occasionally it's Bone_2. These bone projectile differe from lasers: they are ejected from mishnu in a sort of throwing animation: trajectory is a slight arch very subtle arch. Speed decreases very subtly as the projectile travels distance. It starts with a fast spin, which decreases in speed as it travels distance.
User prompt
lower the radius of emitstars on laser by 2/3rds
User prompt
take emit stars, out of game update, and make emit stars a function inside of laser. We don't need it in game update....
===================================================================
--- original.js
+++ change.js
@@ -383,8 +383,9 @@
if (!bone.lastIntersecting && bone.intersects(self)) {
// Check for collision
// Reduce boss health
alienHealthBar.setHealth(alienHealthBar.currentHealth - 1);
+ alienHealthBar.updateHealth(); // Update the visual representation of the health bar
// Play a random boss hit sound
getRandomSound(['Boss_Hit', 'Boss_Hit_2', 'Boss_Hit_3']).play();
// Remove the bone
game.removeChild(bone);
blurry texture background 4k black and white
can of Dog Food. Game asset. 3d clipart. Blank background. High contrast. No shadows..
black capsule. Game asset. 3d clipart. Blank background. High contrast. No shadows..
woman in short shorts. mobile game art. pixel art. full body. front facing. Blank background. High contrast. No shadows.
laser beam cartoon game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bone. clipart. cartoon. Blank background. High contrast. No shadows..
Game Over. Red game letters, dripping. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Dog_panting
Sound effect
Agony_Yell_1
Sound effect
Music_Level_1_5
Music
Music_Level_1_4
Music
Agony_Yell_2
Sound effect
Agony_Yell_3
Sound effect
Agony_Yell_4
Sound effect
Agony_Yell_5
Sound effect
Agony_Yell_6
Sound effect
Agony_Yell_7
Sound effect
Dog_Crunch
Sound effect
Dog_Crunch_2
Sound effect
Dog_Crunch_3
Sound effect
Ding_1
Sound effect
Squish_1
Sound effect
Squish_2
Sound effect
Squish_4
Sound effect
Squish_3
Sound effect
Factory_Deposit
Sound effect
Factory_Operation
Sound effect
Level_Up
Sound effect
Bark
Sound effect
Hit
Sound effect
Agony_Yell_8
Sound effect
Agony_Yell_9
Sound effect
GiggleMan_1
Sound effect
GiggleMan_2
Sound effect
GiggleMan_3
Sound effect
GiggleMan_4
Sound effect
Booster_Sound
Sound effect
Can
Sound effect
woosh
Sound effect
Agony_Yell_10
Sound effect
Bark_2
Sound effect
Bark_3
Sound effect
laser
Sound effect
searing
Sound effect
laser_2
Sound effect
Laser_3
Sound effect
Laser_4
Sound effect
Boss_Hit
Sound effect
Boss_Hit_2
Sound effect
Boss_Hit_3
Sound effect
GiggleMan_5
Sound effect
GiggleMan_6
Sound effect
hip_hop_loop
Sound effect