kanethemediocre / BlingHustle

Open sauce 2d space adventure
GNU General Public License v3.0
0 stars 0 forks source link

Wasting calculations on faraway Umos #23

Open kanethemediocre opened 3 years ago

kanethemediocre commented 3 years ago

Planets / moons need to be updated/gravitated continuously to maintain proper orbits. Ships, however, could just get ignored when far away, and respawned when the player is close. Ship and bomb death is still handled by banishment to faraway lands, which is strange and inefficient.

Planets and ships do maintain reasonable "active" flags, with ships inheriting the state of their parent planet, but the flags aren't used to prevent wasteful calculations.