starting to work on enemy attacks and player health

This commit is contained in:
2026-06-12 02:03:17 -04:00
parent 9f75ec525c
commit 1903e1a1aa
5 changed files with 37 additions and 24 deletions
+7 -1
View File
@@ -24,6 +24,7 @@ public partial class Main : Node
_enemyController._playArea = _playArea;
_playerController.TurnDone += ChangeTurn;
_playerController.Death += EndGame;
_enemyController.TurnDone += ChangeTurn;
_enemyController.Initiate();
@@ -36,7 +37,7 @@ public partial class Main : Node
base._Process(delta);
if (Input.IsActionJustPressed("escape"))
{
GetTree().Quit();
}
if (Input.IsActionJustPressed("changeTurn"))
{
@@ -62,4 +63,9 @@ public partial class Main : Node
}
}
public void EndGame(PlayerController PLAYER)
{
GetTree().Quit();
}
}