User prompt
increase spawn rate of enemies
User prompt
make hero and enemies faster
User prompt
make enemies move only slightly slower than the hero
User prompt
when an enemy touches you, you die
User prompt
make bullets spin
User prompt
make projectiles spawn slower
User prompt
make projectiles kill enemies
User prompt
make projectiles shoot forwards, not stop where the pointer presses
User prompt
make bullets twice as fast as the hero. they should go forever unless an enemy is hit
User prompt
make the projectiles move in the direction the hero moves
User prompt
shoot only when moving
User prompt
fix shooting forwards
User prompt
when moving shoot forwards
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'for (var i = 0; i < hero.heroBullets.length; i++) {' Line Number: 78
User prompt
remove shooting
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'intersects')' in this line: 'if (hero.enemies[i].intersects(hero.heroBullets[j])) {' Line Number: 103
User prompt
make hero shoot enemies
User prompt
shoot enemies
User prompt
remove shooting, then add projects that spawn every second from the heroes position
User prompt
The code needs to correctly reference the bullet instance when setting its position.
User prompt
make projectiles spawn at the heros position
User prompt
why isnt the hero shooting
User prompt
shoot every 500ms
User prompt
add shooting
===================================================================
--- original.js
+++ change.js
@@ -98,9 +98,9 @@
if (hero.intersects(hero.enemies[i])) {
LK.showGameOver();
}
}
- if (LK.ticks % 60 === 0) {
+ if (LK.ticks % 30 === 0) {
spawnEnemy();
}
if (LK.ticks % 20 === 0 && hero.targetPos) {
var bullet = new Bullet();
vampire hunter pixel art Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art vampire, single sprite Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art boomerang Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.