mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 15:05:53 +00:00
Isometric implementation
This commit is contained in:
parent
1434f7aa6d
commit
ed656f00bb
92 changed files with 2834 additions and 223 deletions
|
|
@ -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);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue