Removing test drone
This commit is contained in:
parent
cfe0fb2e5a
commit
20bcab01b1
2 changed files with 1 additions and 10 deletions
|
|
@ -1,8 +0,0 @@
|
|||
[gd_scene format=3 uid="uid://53jwsbj0hghr"]
|
||||
|
||||
[node name="TestDrone" type="Node2D"]
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="."]
|
||||
position = Vector2(1, -1)
|
||||
color = Color(1, 0.266667, 1, 1)
|
||||
polygon = PackedVector2Array(-28, -25, 25, -28, 26, 33, -32, 19)
|
||||
|
|
@ -8,7 +8,6 @@ var spawning_type : String = ""
|
|||
@onready var cursor = preload("res://resources/cursors/launch_drone.png")
|
||||
|
||||
# Drones!
|
||||
@onready var test_drone = preload("res://entities/TestDrone.tscn")
|
||||
@onready var director_drone = preload("res://entities/DirectorDrone.tscn")
|
||||
@onready var dancer_drone = preload("res://entities/DancerDrone.tscn")
|
||||
@onready var distractor_drone = preload("res://entities/DistractorDrone.tscn")
|
||||
|
|
@ -41,7 +40,7 @@ func spawn_drone(drone_type : String) -> void:
|
|||
elif drone_type == "collector":
|
||||
new_drone = collector_drone.instantiate()
|
||||
else:
|
||||
new_drone = test_drone.instantiate()
|
||||
Log.pr("Unknown drone type: " + drone_type)
|
||||
|
||||
spawned_drones_container.add_child(new_drone)
|
||||
new_drone.position = get_viewport().get_mouse_position()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue