User prompt
Create a new enemy every 2 seconds
User prompt
Remove the code that creates the enemy after the first minion is created
User prompt
When a minion is destroyed, remove it from the minions array
User prompt
When the enemy is destroyed remove it from the enemies array
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'self.parent.addChild(deadBody);' Line Number: 40
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'deadBodies')' in this line: 'self.parent.deadBodies.push(deadBody);' Line Number: 37
User prompt
When the enemy's health is 0, destroy it and create a dead body in it's place
User prompt
The damage done by the player to the enemy is 0.7
User prompt
The enemy's health cannot go below 0
User prompt
If the player is near the enemy, do damage to the enemy
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'enemies')' in this line: 'for (var i = 0; i < self.parent.enemies.length; i++) {' Line Number: 201
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'enemies')' in this line: 'for (var i = 0; i < self.parent.enemies.length; i++) {' Line Number: 201
User prompt
When the minion's health is 0, destroy the minion
User prompt
Change the damage done to the enemy to 0.7
User prompt
Place the health bar of the enemy at 30 on the Y axis
User prompt
Place the health bar of the enemy at -50 on the X axis
User prompt
Change the enemy health bar height to 20 pixels
User prompt
Have the enemy render the health bar in front of the shadow and the main sprite
User prompt
Add a healthbar to the enemy
User prompt
When the minion is being attacked, it doesn't move
User prompt
When the minion is attacking the enemy, do not move the enemy
User prompt
Change the damage done to the minion by the enemy to be 1
User prompt
Change the damage done to the minion by the enemy to be 3
User prompt
Place the health bar of the minion at -50 on the X axis
User prompt
Place the health bar of the minion at 30 on the Y axis
===================================================================
--- original.js
+++ change.js
@@ -161,20 +161,8 @@
var minionCreationVFX = new MinionCreationVFX();
minionCreationVFX.x = newMinion.x;
minionCreationVFX.y = newMinion.y;
self.parent.addChild(minionCreationVFX);
- if (self.parent.minions.length === 1) {
- var newEnemy = new Enemy();
- if (Math.random() < 0.5) {
- newEnemy.x = Math.random() * 2048;
- newEnemy.y = 2732;
- } else {
- newEnemy.x = Math.random() < 0.5 ? 0 : 2048;
- newEnemy.y = Math.random() * (2732 - 1200) + 1200;
- }
- enemies.push(newEnemy);
- self.parent.addChild(newEnemy);
- }
}
}
} else if (self.meterBar.parent) {
self.meterBar.parent.removeChild(self.meterBar);
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