fourth commit

This commit is contained in:
2026-05-28 21:35:06 -04:00
parent 4266625390
commit 617c6cc233
6 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ public partial class Main : Node
{
public bool _isCommanderTurn = true;
public Commander _commander;
public GridMap _grid;
public GridMap2D _grid;
public PackedScene _enemyScene = GD.Load<PackedScene>("res://Enemy.tscn");
public List<Enemy> _enemies = new();
public Random _rng = new();
@@ -15,7 +15,7 @@ public partial class Main : Node
{
base._Ready();
_commander = GetNode<Commander>("Commander");
_grid = GetNode<GridMap>("GridMap");
_grid = GetNode<GridMap2D>("GridMap2D");
_commander.GlobalPosition = _grid.GlobalPosition;
_commander.TurnDone += ChangeTurn;
AddEnemy();