finished reowrking grid maps, polished astar pathfinding, started work on aiming functions --todo: change launch speed to constant, change aim function to take into account the angle it would need to launch at to hit mouse position like in peggle, add raycasting
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
|
||||
public partial class Main : Node
|
||||
{
|
||||
public GridMap2D _grid;
|
||||
public PlayArea _playArea;
|
||||
public PlayerController _playerController;
|
||||
public EnemyController _enemyController;
|
||||
public TurnController _turnController;
|
||||
@@ -13,15 +13,15 @@ public partial class Main : Node
|
||||
public override void _Ready()
|
||||
{
|
||||
base._Ready();
|
||||
_grid = GetNode<GridMap2D>("GridMap2D");
|
||||
_playArea = GetNode<PlayArea>("PlayArea");
|
||||
_playerController = GetNode<PlayerController>("PlayerController");
|
||||
_enemyController = GetNode<EnemyController>("EnemyController");
|
||||
|
||||
_playerController._enemyController = _enemyController;
|
||||
_enemyController._playerController = _playerController;
|
||||
|
||||
_playerController._grid = _grid;
|
||||
_enemyController._grid = _grid;
|
||||
_playerController._playArea = _playArea;
|
||||
_enemyController._playArea = _playArea;
|
||||
|
||||
_playerController.TurnDone += ChangeTurn;
|
||||
_enemyController.TurnDone += ChangeTurn;
|
||||
|
||||
Reference in New Issue
Block a user