Closed thombruce closed 9 months ago
[^1]: This isn't a massive problem, but I would prefer for things like animation and UI elements to continue operating in part to show that the universe goes on without you in it, and in part because we'll eventually need these systems to continue working outside of the main active state in any case (e.g. when we add interior view(s) and other gameplay states).
"Enter" press just isn't working very well at all... Adding a second button has helped the menu, but it still isn't initially responding sometimes.
Navigating between focusables is working just fine. It is as if the actionable button press system just isn't running...
...and I know exactly why.
Basically, I had introduced a conflict between two systems each fighting to command the next_state
. The GameOver next_state handling was still running every frame in the absence of the player...
This would probably be better handled by a single event and a one off system, but I'm going to deliver as is and leave that for future refactoring (the one off systems are a new feature in Bevy 0.12 and I haven't played with them yet; not sure how stable or experimental they still are).
closes #59
By submitting this pull request, you agree to follow our Code of Conduct: https://github.com/thombruce/.github/blob/main/CODE_OF_CONDUCT.md
Internal use. Do not delete.