Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better failure mode for player ship destruction #631

Open
alexanderson1993 opened this issue Sep 2, 2024 · 0 comments
Open

Better failure mode for player ship destruction #631

alexanderson1993 opened this issue Sep 2, 2024 · 0 comments
Labels

Comments

@alexanderson1993
Copy link
Member

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:

  • Respawn: Snapshot the state of the ship before it was destroyed and respawn it in the same state, but with shields, hull, and system efficiency restored. Probably better for multi-bridge missions.
  • Snapshot: Take regular snapshots of the mission and restore the entire simulation when the player ship is destroyed.
  • Permadeath: The mission is entirely over when the player ship is destroyed.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant