60 lines
1.7 KiB
Text
60 lines
1.7 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://vv75ycmtipn7"]
|
|
|
|
[ext_resource type="Script" uid="uid://u353j4q7l26d" path="res://cyclone.gd" id="1_khbba"]
|
|
[ext_resource type="Texture2D" uid="uid://cdw1vlidvg2yt" path="res://Sprites/Cyclone.png" id="2_7e2hf"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_xr6w1"]
|
|
radius = 32.0
|
|
|
|
[node name="Cyclone" type="RigidBody2D" node_paths=PackedStringArray("sprite", "label", "wind_speed_label", "line")]
|
|
gravity_scale = 0.0
|
|
lock_rotation = true
|
|
script = ExtResource("1_khbba")
|
|
sprite = NodePath("Sprite2D")
|
|
label = NodePath("cLabel")
|
|
wind_speed_label = NodePath("wsLabel")
|
|
line = NodePath("Line2D")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
scale = Vector2(0.2, 0.2)
|
|
texture = ExtResource("2_7e2hf")
|
|
|
|
[node name="Line2D" type="Line2D" parent="."]
|
|
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="."]
|
|
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="."]
|
|
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="."]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_xr6w1")
|
|
|
|
[node name="newPointTimer" type="Timer" parent="."]
|
|
wait_time = 0.5
|
|
autostart = true
|
|
|
|
[connection signal="timeout" from="changeTimer" to="." method="_on_timer_timeout"]
|
|
[connection signal="timeout" from="newPointTimer" to="." method="_on_new_point_timer_timeout"]
|