starting to work on enemy attacks and player health
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user