Add small light to every 2D enemy, utilize CanMove tag to prevent some enemies (like Filth Eater) from moving while attacking (if it makes sense to do so)

This commit is contained in:
2026-06-14 01:53:31 -07:00
parent cdfb7e95a9
commit 03d6957d3b
30 changed files with 649 additions and 24 deletions
@@ -14,7 +14,7 @@ public partial class BadEnd : SpecialFloor
[Dependency] protected IGame _game => this.DependOn<IGame>();
[Export] public float ShakeAmount = 50;
[Export] public int SpawnTimer = 5;
[Export] public int SpawnTimer = 15;
[Node] public Node3D EnemySpawnPoints { get; set; } = default!;
@@ -26,7 +26,7 @@ public partial class BadEnd : SpecialFloor
public void OnReady()
{
SpawnEnemies(10);
SpawnEnemies(3);
_spawnTimer = new Timer
{
WaitTime = SpawnTimer
@@ -41,6 +41,9 @@ public partial class BadEnd : SpecialFloor
public async void StartEndGameCutscene()
{
_player.Deactivate();
var enemies = GetTree().GetNodesInGroup("enemy").Cast<Enemy>().ToList();
foreach (var enemy in enemies)
enemy.CallDeferred(MethodName.QueueFree);
_spawnTimer.Stop();
_player.ShowCamera(false);
Camera3D.Current = true;