User prompt
Place the health bar of the minion at 40 on the Y axis
User prompt
✅ Move the health bar of the minion lower by 40 on the Y axis
User prompt
Move the health bar of the minion lower by -20 on the Y axis
User prompt
✅ Move the health bar of the minion lower by 20 pixels
User prompt
Move the health bar of the minion lower by 20 pixels
User prompt
Render the minion health bar to be in front of the shadow and main sprite
User prompt
Change the minion health bar height to 20 pixels
User prompt
enemy health cannot go below 0
User prompt
Minion health cannot go below 0
User prompt
Only reduce the health of the minion if it's near an enemy
User prompt
When the minion and enemy are in 150 pixels of each, do damage to each other's health
User prompt
Add a meter bar below the minion and enemy that scales proportionally to its health
User prompt
Give the enemy and minions a health property. Enemies start with 100 health. Minions start with 100 heath
User prompt
If the minion is not within 500 pixels of an enemy, move towards the player
User prompt
Fix Bug: 'TypeError: Cannot read properties of null (reading 'x')' in this line: 'var dx = target.x - self.x;' Line Number: 183
User prompt
If the minion is within 500 pixels of an enemy, move towards it instead of the player
User prompt
If the minion is within 1000 pixels of an enemy, move towards it instead of the player
User prompt
Remove all the ui
User prompt
If the enemy is moving left, flip the sprite on the X axis
User prompt
When the enemy is created, have a 50% chance of its position being a random position on the bottom of the screen
User prompt
When the enemy is within 60 pixels of the player, don't move closer to the player
User prompt
Change the enemies pause period to 45 ticks
User prompt
Change the enemy movement so that it stops for 300 ticks every 300 pixels it moves
User prompt
The enemies random Y position when it is created cannot be less than 1200
User prompt
Add a shadow to the enemy
===================================================================
--- original.js
+++ change.js
@@ -179,11 +179,13 @@
}
if (target === player && minDistance === 500) {
target = null;
}
- var dx = target.x - self.x;
- var dy = target.y - self.y;
- var distance = Math.sqrt(dx * dx + dy * dy);
+ if (target) {
+ var dx = target.x - self.x;
+ var dy = target.y - self.y;
+ var distance = Math.sqrt(dx * dx + dy * dy);
+ }
if (distance > 60) {
self.x += dx / distance * self.speed;
if (dx > 0) {
minionGraphics.scale.x = -1;
A pixel art sprite in a Super Nintendo, Super Castlevania style where it looks a little gothic/vampire hunter like Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A pixel art large background in a Super Nintendo, Super Castlevania style with an open world like cemetery, 3/4 viewpoint 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. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. A pixel art sprite in a Super Nintendo, Super Castlevania style that looks like a small pile of bones
Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. A pixel art sprite in a Super Nintendo, Super Castlevania style that looks like a skeleton zombie that is haunched over
Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Pixel art in a SNES style that looks like something from castlevania. A ground explosion effect like something is coming out of the ground
Pixel art in SNES Castlevania style. Red goblin Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Pixel art in SNES Castlevania style. Red goblin