0

In bullet hell games, enemies and bullets can follow linear, parabolic, and from what I can tell, either polar or exponential(?) paths. Usually these paths are pretty unchanging, though some do track the player.

Are these paths best calculated in real time? Or does it make any sense to save a path in a file (like a list of offset-from-origin values)? Does this decision change depending on the language/program the game runs on?

What I mean by real-time calculation: every frame, calculating the new position, speed, and maybe even acceleration of each bullet and enemy

Additionally, this comes from the perspective of trying to make something in PyGame. I'd be more than happy to know that calculating the path in real time is efficient enough, but I wanted to know beforehand that it's a good decision. I think I'll switch to Unity.

Meulin
  • 13
  • 2
  • 1
    The calculation would likely be so cheap that reading the path and maintaining it would be far more expensive. A linear path would be addition and multiplication. Dirt cheap. When I did it, it was calculated per frame, I can't say how its always done though. – Carcigenicate Jul 16 '18 at 00:47
  • 2
    Why don't you benchmark both methods and choose the best? – meowgoesthedog Jul 16 '18 at 08:22

0 Answers0