Update drone and level scenes with new shapes, connections, and scripts. Add mouse interaction events for director drone. Include new level 2 & 3 scenes with various elements and components.
This commit is contained in:
parent
491395e6b9
commit
7009695327
238 changed files with 4275 additions and 23 deletions
|
|
@ -1,8 +1,12 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://nxq2fd04ehcu"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://nxq2fd04ehcu"]
|
||||
|
||||
[ext_resource type="Script" path="res://entities/scripts/director_drone.gd" id="1_3v6jp"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnhs5ymd6ybyd" path="res://resources/textures/director_drone.png" id="2_8nbjk"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_wr5vn"]
|
||||
radius = 43.0
|
||||
height = 94.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_qstd5"]
|
||||
resource_name = "Idle"
|
||||
length = 2.0
|
||||
|
|
@ -80,6 +84,12 @@ _data = {
|
|||
[node name="DirectorDrone" type="Node2D"]
|
||||
script = ExtResource("1_3v6jp")
|
||||
|
||||
[node name="ClickDetection" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ClickDetection"]
|
||||
position = Vector2(-2, 10)
|
||||
shape = SubResource("CapsuleShape2D_wr5vn")
|
||||
|
||||
[node name="DirectorDrone" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.3, 0.3)
|
||||
texture = ExtResource("2_8nbjk")
|
||||
|
|
@ -97,12 +107,11 @@ color = Color(0.703926, 0.656042, 0.441124, 1)
|
|||
polygon = PackedVector2Array(-28, -25, 25, -28, 26, 33, -32, 19)
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
offset_left = 16.0
|
||||
offset_top = 26.0
|
||||
offset_top = 25.0
|
||||
offset_right = 56.0
|
||||
offset_bottom = 49.0
|
||||
theme_override_colors/font_color = Color(0.270588, 0.211765, 0.364706, 1)
|
||||
offset_bottom = 48.0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
text = "9 "
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
|
|
@ -110,3 +119,7 @@ libraries = {
|
|||
"": SubResource("AnimationLibrary_xu26h")
|
||||
}
|
||||
autoplay = "Idle"
|
||||
|
||||
[connection signal="input_event" from="ClickDetection" to="." method="_on_click_detection_input_event"]
|
||||
[connection signal="mouse_entered" from="ClickDetection" to="." method="_on_click_detection_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="ClickDetection" to="." method="_on_click_detection_mouse_exited"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue