Thorium-Sim / thorium-nova

Next-generation Spaceship Controls
https://thoriumsim.com
Apache License 2.0
345 stars 14 forks source link

Better failure mode for player ship destruction #631

Open alexanderson1993 opened 3 months ago

alexanderson1993 commented 3 months ago

In the current develop branch, there are shields. Yay! And hull on player ships. Yay! That means it's now possible to destroy player ships.

When that happens (eg. when the "isDestroyed" component is applied to the ship), everything just stops working. There isn't a good failure mode for when the player ship is destroyed. We should probably have something.

I imagine there will be many options for how this could go that might need to be configurable on a mission-by-mission basis:

For now, we'll do permadeath and implement the others later. This issue is just for displaying a screen that says "You have died" or something similar. Static effects, cracked screens, and other stuff like that are more than welcome.