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:
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=238 format=4 uid="uid://dvnc26rebk6o0"]
|
||||
[gd_scene load_steps=239 format=4 uid="uid://dvnc26rebk6o0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cuhfkyh3d7noa" path="res://src/map/dungeon/code/Overworld.cs" id="1_5hmt3"]
|
||||
[ext_resource type="Texture2D" uid="uid://co6h8vyi11sl2" path="res://src/map/overworld/Models/Overworld_CLOUD_RINGS_INNER_63.png" id="2_g6b7b"]
|
||||
@@ -744,6 +744,9 @@ size = Vector3(4.24915, 15.9039, 1)
|
||||
height = 13.8284
|
||||
radius = 1.76855
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_1b363"]
|
||||
size = Vector3(5.06068, 4.06201, 4.32288)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_b53dq"]
|
||||
size = Vector3(7.76668, 5.73663, 7.88136)
|
||||
|
||||
@@ -2500,6 +2503,10 @@ shape = SubResource("CylinderShape3D_v60tm")
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -287.947, 5.07643, 87.4924)
|
||||
shape = SubResource("CylinderShape3D_v60tm")
|
||||
|
||||
[node name="CollisionShape3D54" type="CollisionShape3D" parent="Collisions/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -281.158, 4.40251, 90.2048)
|
||||
shape = SubResource("BoxShape3D_1b363")
|
||||
|
||||
[node name="Spawn Points" type="Node3D" parent="."]
|
||||
transform = Transform3D(0.99, 0, 0, 0, 0.99, 0, 0, 0, 0.99, -132.777, 0, -5.09045)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user