cooking
This commit is contained in:
parent
170916456e
commit
3e0e23c28c
6 changed files with 175 additions and 1 deletions
73
2dWorld.tscn
Normal file
73
2dWorld.tscn
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
[gd_scene load_steps=4 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"]
|
||||
|
||||
[node name="2dWorld" type="Node2D"]
|
||||
|
||||
[node name="WorldMap" type="Sprite2D" parent="."]
|
||||
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")]
|
||||
position = Vector2(572, 229)
|
||||
script = ExtResource("1_xr6w1")
|
||||
sprite = NodePath("Sprite2D")
|
||||
label = NodePath("cLabel")
|
||||
wind_speed_label = NodePath("wsLabel")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Cyclone"]
|
||||
scale = Vector2(0.2, 0.2)
|
||||
texture = ExtResource("1_1wkcu")
|
||||
|
||||
[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="Timer" type="Timer" parent="Cyclone"]
|
||||
wait_time = 5.0
|
||||
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="VBoxContainer" type="VBoxContainer" parent="Background/UI"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="LoadImage" type="Button" parent="Background/UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Load Image"
|
||||
|
||||
[node name="Spawn" type="Button" parent="Background/UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Spawn Cyclone"
|
||||
|
||||
[connection signal="timeout" from="Cyclone/Timer" to="Cyclone" method="_on_timer_timeout"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue