thombruce / verse

🚀 A universe in progress
Other
8 stars 0 forks source link

Heat damage (Sun damages ships over time) #78

Open thombruce opened 10 months ago

thombruce commented 10 months ago

Given that a ship or many ships are within a certain distance of the Sun's centre, apply heat damage to them over time.

There are two ways we might consider doing this:

  1. Every tick, a gradual process
  2. On a cooldown timer, a large chunk lost every second or so

The second sounds more arcadey to me and more fun to observe, as well as clearer - we can sync each chunk of damage to a simultaneous animation.

It's also not entirely unrealistic. You could imagine it representing certain thresholds of failure as the heat shields fail, the outer-hull fails, the internal heating/cooling systems fail...

For now, I just want it to be a simple but expressive effect that makes it dangerous to engage in combat around the central star.

I also believe this can be delivered with v0.1

thombruce commented 10 months ago

Long-term, planetary systems should have a gradient of temperature, but that isn't necessarily a concern here - the same system we will use to apply heat damage can later be reused under different conditions (spatial temperature rather than distance).