Cleanup, make the project compilable on windows using AoT, add room box to all rooms

This commit is contained in:
2025-02-27 22:30:51 -08:00
parent f41c0ec025
commit d9cb9fb31e
115 changed files with 757 additions and 3153 deletions

View File

@@ -170,17 +170,17 @@ public partial class Enemy : CharacterBody3D, IEnemy, IProvide<IEnemyLogic>
private void OnAttackTimeout()
{
//if (GlobalPosition.DistanceTo(_player.CurrentPosition) > 5f)
//{
// _enemyLogic.Input(new EnemyLogic.Input.Alerted());
// return;
//}
if (GlobalPosition.DistanceTo(_player.CurrentPosition) > 5f)
{
_enemyLogic.Input(new EnemyLogic.Input.Alerted());
return;
}
var rng = new RandomNumberGenerator();
rng.Randomize();
_enemyLogic.Input(new EnemyLogic.Input.AttackTimer());
_attackTimer.Stop();
//_attackTimer.WaitTime = rng.RandfRange(2f, 5.0f);
_attackTimer.WaitTime = rng.RandfRange(2f, 5.0f);
_attackTimer.Start();
}