Isometric implementation

This commit is contained in:
Marco 2025-06-10 16:33:43 +02:00
commit ed656f00bb
92 changed files with 2834 additions and 223 deletions

View file

@ -89,12 +89,12 @@ public partial class TurretAnimationModule : ModuleBase<EnemyState, CharacterBod
}
}
private void DrawDebugLine(Vector2 endPoint)
{
// Request the node to redraw
QueueRedraw();
_debugLineEndPoint = endPoint;
}
// private void DrawDebugLine(Vector2 endPoint)
// {
// // Request the node to redraw
// QueueRedraw();
// _debugLineEndPoint = endPoint;
// }
private void UpdateSpriteDirection()
{
@ -103,11 +103,11 @@ public partial class TurretAnimationModule : ModuleBase<EnemyState, CharacterBod
private Vector2 _debugLineEndPoint;
public override void _Draw()
{
if (Debug)
{
DrawLine(Vector2.Zero, ToLocal(_debugLineEndPoint), Colors.Red, 2);
}
}
// public override void _Draw()
// {
// if (Debug)
// {
// DrawLine(Vector2.Zero, ToLocal(_debugLineEndPoint), Colors.Red, 2);
// }
// }
}