108 lines
3.4 KiB
Text
108 lines
3.4 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://biu528mgexdyp"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cdw1vlidvg2yt" path="res://Sprites/Cyclone.png" id="1_1wkcu"]
|
|
[ext_resource type="Texture2D" uid="uid://b48ofysofsffi" path="res://icon.svg" id="1_2uw02"]
|
|
[ext_resource type="Script" uid="uid://u353j4q7l26d" path="res://cyclone.gd" id="1_xr6w1"]
|
|
[ext_resource type="Script" uid="uid://b1w10iwwhm5bj" path="res://addons/Fantail-Interactive.top_down_camera/td_camera_2d.gd" id="4_u230a"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_xr6w1"]
|
|
radius = 32.0
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xr6w1"]
|
|
size = Vector2(674, 28)
|
|
|
|
[node name="2dWorld" type="Node2D"]
|
|
|
|
[node name="WorldMap" type="Sprite2D" parent="."]
|
|
modulate = Color(1.8049e-07, 0.391665, 0.150329, 1)
|
|
position = Vector2(589, 319)
|
|
scale = Vector2(5, 5)
|
|
texture = ExtResource("1_2uw02")
|
|
|
|
[node name="Cyclone" type="RigidBody2D" parent="." node_paths=PackedStringArray("sprite", "label", "wind_speed_label", "line")]
|
|
position = Vector2(572, 229)
|
|
gravity_scale = 0.0
|
|
lock_rotation = true
|
|
script = ExtResource("1_xr6w1")
|
|
sprite = NodePath("Sprite2D")
|
|
label = NodePath("cLabel")
|
|
wind_speed_label = NodePath("wsLabel")
|
|
line = NodePath("Line2D")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Cyclone"]
|
|
scale = Vector2(0.2, 0.2)
|
|
texture = ExtResource("1_1wkcu")
|
|
|
|
[node name="Line2D" type="Line2D" parent="Cyclone"]
|
|
position = Vector2(-572, -229)
|
|
width = 2.0
|
|
default_color = Color(0.656747, 0, 0.0830602, 1)
|
|
joint_mode = 2
|
|
|
|
[node name="cLabel" type="Label" parent="Cyclone"]
|
|
offset_left = -21.0
|
|
offset_top = -11.0
|
|
offset_right = 19.0
|
|
offset_bottom = 12.0
|
|
size_flags_horizontal = 4
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="wsLabel" type="Label" parent="Cyclone"]
|
|
offset_left = -21.0
|
|
offset_top = -66.0
|
|
offset_right = 19.0
|
|
offset_bottom = -43.0
|
|
size_flags_horizontal = 4
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="changeTimer" type="Timer" parent="Cyclone"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Cyclone"]
|
|
shape = SubResource("CircleShape2D_xr6w1")
|
|
|
|
[node name="newPointTimer" type="Timer" parent="Cyclone"]
|
|
wait_time = 0.5
|
|
autostart = true
|
|
|
|
[node name="Background" type="CanvasLayer" parent="."]
|
|
layer = -1
|
|
|
|
[node name="wall" type="StaticBody2D" parent="."]
|
|
position = Vector2(581, -12)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall"]
|
|
shape = SubResource("RectangleShape2D_xr6w1")
|
|
|
|
[node name="wall2" type="StaticBody2D" parent="."]
|
|
position = Vector2(592, 647)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall2"]
|
|
shape = SubResource("RectangleShape2D_xr6w1")
|
|
|
|
[node name="wall3" type="StaticBody2D" parent="."]
|
|
position = Vector2(259, 317)
|
|
rotation = 1.5708
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall3"]
|
|
shape = SubResource("RectangleShape2D_xr6w1")
|
|
|
|
[node name="wall4" type="StaticBody2D" parent="."]
|
|
position = Vector2(909, 326)
|
|
rotation = 1.5708
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall4"]
|
|
shape = SubResource("RectangleShape2D_xr6w1")
|
|
|
|
[node name="TDCamera2D" type="Camera2D" parent="."]
|
|
position = Vector2(579, 330)
|
|
script = ExtResource("4_u230a")
|
|
metadata/_custom_type_script = "uid://b1w10iwwhm5bj"
|
|
|
|
[connection signal="timeout" from="Cyclone/changeTimer" to="Cyclone" method="_on_timer_timeout"]
|
|
[connection signal="timeout" from="Cyclone/newPointTimer" to="Cyclone" method="_on_new_point_timer_timeout"]
|