User prompt
increase the spawn rate of enemies every 10 points
User prompt
Remove the hero's targetPos assignment in mouse down event
User prompt
adjust the bloodsplatter lifetime to be 0.5
User prompt
Replace the update function in the bloodsplatter with a timeout instead
User prompt
after an enemy is destroyed, display a bloodsplatter for 500ms
User prompt
Fix Bug: 'Timeout.tick error: enemies[i] is undefined' in this line: 'enemies[i].destroy();' Line Number: 156
User prompt
before an enemy is destroyed, display a bloodsplatter for 500ms
User prompt
move the healing pickup logic to before the enemy is destroyed and remove the check to see if the enemy exists
User prompt
Make the hero show above all other sprites
User prompt
after an enemy has moved assign its y position to the z-index
User prompt
double the hero's bullet speed rotation
User prompt
Fix Bug: 'TypeError: enemies[i] is undefined' in this line: 'pickup.x = enemies[i].x;' Line Number: 139
User prompt
health pickups should spawn where the enemy was destroyed rather than by the hero
User prompt
Fix Bug: 'TypeError: hero.enemies is undefined' in this line: 'hero.enemies.splice(i, 1);' Line Number: 134
User prompt
Fix Bug: 'TypeError: hero.enemies is undefined' in this line: 'hero.enemies[i].destroy();' Line Number: 133
User prompt
Fix Bug: 'TypeError: hero.enemies is undefined' in this line: 'if (heroBullets[j].intersects(hero.enemies[i])) {' Line Number: 130
User prompt
Fix Bug: 'TypeError: hero.enemies is undefined' in this line: 'if (hero.intersects(hero.enemies[i])) {' Line Number: 147
User prompt
Fix Bug: 'TypeError: hero.enemies is undefined' in this line: 'hero.enemies[i].move();' Line Number: 128
User prompt
hero should not hold the list of enemies, put that in the game
User prompt
enemies should record the tick they were created on, and reduce the bobbing tick counter by that
User prompt
on mouseup set the hero's targetPos to null
User prompt
On mouse move only update the hero's targetPos if canMove is true
User prompt
remove line 78
User prompt
On mouse up set canMove variable to false
User prompt
stage.isDown is not a variable
===================================================================
--- original.js
+++ change.js
@@ -143,9 +143,9 @@
i--;
j--;
}
}
- if (hero.intersects(hero.enemies[i])) {
+ if (hero.intersects(enemies[i])) {
hero.health -= 1;
if (hero.health <= 0) {
LK.showGameOver();
}
pixel art cross with blue accents Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a white orb. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a white orb with a halo. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a pulsating white heart with a halo. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a dark goo projectile with red highlights. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art tall blue fireball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of an evil fantasy sword facing downward. Minor red details. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
backgroundAmbient
Sound effect
heroHealed
Sound effect
pickupExperience
Sound effect
heroLeveled
Sound effect
weaponCrossImpact
Sound effect
heroImpact
Sound effect
enemyDeath
Sound effect
pickupWeapon
Sound effect
pickupCrucifix
Sound effect
weaponCrossLaunch
Sound effect
heroDeath
Sound effect
enemyRoar
Sound effect
clockChime
Sound effect