Slightly rework death screen

This commit is contained in:
2025-03-07 23:08:08 -08:00
parent 8a61104868
commit 84570fe87d
9 changed files with 23 additions and 17 deletions

View File

@@ -8,20 +8,20 @@ public partial class GameLogic
{
[Meta]
public partial record Playing : State,
IGet<Input.GameOver>,
IGet<Input.AskForTeleport>,
IGet<Input.PauseGame>,
IGet<Input.GoToOverworld>
{
public Playing()
{
OnAttach(() => Output(new Output.StartGame()));
OnAttach(() =>
{
Output(new Output.StartGame());
});
}
public void OnEnded() => Input(new Input.GameOver());
public Transition On(in Input.GameOver input) => To<Quit>();
public Transition On(in Input.AskForTeleport input) => To<AskForTeleport>();
public Transition On(in Input.PauseGame input) => To<Paused>();