Fix para los items que no caen

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-21 13:20:26 +02:00
1 parent e1e29f02f1
commit aeb5b324f1
28 files changed
+194 -54

No files matched your search

+2 -1
View File
@@ -10,7 +10,7 @@ signal level_completed
const TEST_ITEM_COUNT: int = 17
const LEVEL_WIDTH: int = 8500
const FINISH_RESTART_SECONDS: float = 8.0
const LAB_BUILD: String = "LAB DROPS v2"
const LAB_BUILD: String = "LAB DROPS v3"
const CONTROL_ITEM_ID: StringName = &"lab_control"
const PICKUP_SCENE: PackedScene = preload("res://pickups/pickup.tscn")
@@ -110,6 +110,7 @@ func _process_station_deaths() -> void:
# data before adding it, then defer its entry into the scene tree.
var pickup: Pickup = PICKUP_SCENE.instantiate() as Pickup
pickup.pickup_data = data
pickup.collection_delay_seconds = Pickup.DROP_COLLECTION_DELAY_SECONDS
pickup.position = to_local(enemy.global_position + Vector2(34.0, -12.0))
call_deferred("add_child", pickup)
spawned_drops += 1