its coming together

This commit is contained in:
Tabby 2025-06-29 16:25:51 +10:00
parent 3e0e23c28c
commit 1dadffeac4
11 changed files with 290 additions and 28 deletions

View file

@ -1,27 +1,44 @@
[gd_scene load_steps=4 format=3 uid="uid://biu528mgexdyp"]
[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="Node2D" parent="." node_paths=PackedStringArray("sprite", "label", "wind_speed_label")]
[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
@ -42,32 +59,50 @@ text = "1"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Timer" type="Timer" parent="Cyclone"]
[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="UI" type="Control" parent="Background"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="wall" type="StaticBody2D" parent="."]
position = Vector2(581, -12)
[node name="VBoxContainer" type="VBoxContainer" parent="Background/UI"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall"]
shape = SubResource("RectangleShape2D_xr6w1")
[node name="LoadImage" type="Button" parent="Background/UI/VBoxContainer"]
layout_mode = 2
text = "Load Image"
[node name="wall2" type="StaticBody2D" parent="."]
position = Vector2(592, 647)
[node name="Spawn" type="Button" parent="Background/UI/VBoxContainer"]
layout_mode = 2
text = "Spawn Cyclone"
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall2"]
shape = SubResource("RectangleShape2D_xr6w1")
[connection signal="timeout" from="Cyclone/Timer" to="Cyclone" method="_on_timer_timeout"]
[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"]