So today, I decided to update my game, in which you dodge generic enemies and attempt to reach the highest score via survival.
The boss of my game was added yesterday, however he lacked any attacks, only being able to move side-to-side on the top of the screen.
elif attack == "spread":
boss_bullets.extend(boss_fire_spread(boss))
elif attack == "summon":
for _ in range(3):
rect, speed, pattern, data = spawn_enemy(difficulty + 2)
enemies.append([rect, speed + 3, pattern, data])
With this, i added an attack that shoots out a wide-spread of yellow bullets.
It took me a while to figure it out, but it works.
So after that, I decided to attempt to fix the spawn issue, what is it you may ask?
Well, i’ll tell you;
After defeating the boss, without warning, at least 40~58 enemies would suddenly drop from the top of the screen at high speed
But uh… i didn’t fix it entirely.
It doesn’t hold the same issue anymore, but now it’s the difficulty scaling thats the problem.
It doesn’t stop when fighting the boss, it secretly continues going up.
So next time, i’ll figure it out.