In progress gameplay loop changes

This commit is contained in:
2025-04-15 00:33:59 -07:00
parent 03caa13ceb
commit 24b4227425
11 changed files with 108 additions and 29 deletions

View File

@@ -20,7 +20,6 @@ public partial class GameLogic
public Transition On(in Input.StartGame input)
{
Output(new Output.LoadMap());
return To<Playing>();
}

View File

@@ -17,6 +17,7 @@ public partial class GameLogic
OnAttach(() =>
{
Output(new Output.StartGame());
Output(new Output.LoadMap());
});
}

View File

@@ -8,12 +8,18 @@ public partial class GameLogic
public partial record State
{
[Meta]
public partial record Quit : State
public partial record Quit : State, IGet<Input.GoToOverworld>
{
public Quit()
{
this.OnEnter(() => Output(new Output.ShowLostScreen()));
}
public Transition On(in Input.GoToOverworld input)
{
Input(new Input.StartGame());
return To<Playing>();
}
}
}
}

View File

@@ -6,6 +6,8 @@ namespace Zennysoft.Ma.Adapter;
public interface IPlayer : IKillable
{
public void InitializePlayerState();
public void Attack();
public void PlayerPause();