Grahpics overhaul and predicting bullets

This commit is contained in:
MaddoScientisto 2025-05-04 22:01:59 +02:00
commit 946e7df71e
14 changed files with 144 additions and 26 deletions

View file

@ -16,6 +16,7 @@ public partial class PlayerDetectionModule : Area2D
public uint ObstaclesCollisionMask { get; private set; }
public Vector2? LastKnownPlayerPosition { get; set; }
public Vector2? LastKnowPlayerVelocity { get; set; }
//public bool PlayerInActiveArea { get; private set; }
private CollisionShape2D _collisionShape2D;
@ -77,6 +78,7 @@ public partial class PlayerDetectionModule : Area2D
if (found)
{
LastKnownPlayerPosition = GameManager.Instance.PlayerPosition;
LastKnowPlayerVelocity = GameManager.Instance.PlayerVelocity;
}
return found;
}