meow
This commit is contained in:
parent
1dadffeac4
commit
ab1797b9ed
6 changed files with 120 additions and 61 deletions
71
2dWorld.tscn
71
2dWorld.tscn
|
|
@ -1,17 +1,17 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://biu528mgexdyp"]
|
||||
[gd_scene load_steps=6 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://bdc53dgnhonif" path="res://worldManager.gd" id="1_gy87s"]
|
||||
[ext_resource type="PackedScene" uid="uid://vv75ycmtipn7" path="res://Prefabs/cyclone.tscn" id="3_u230a"]
|
||||
[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="2dWorld" type="Node2D" node_paths=PackedStringArray("camera", "map")]
|
||||
script = ExtResource("1_gy87s")
|
||||
camera = NodePath("TDCamera2D")
|
||||
map = NodePath("WorldMap")
|
||||
|
||||
[node name="WorldMap" type="Sprite2D" parent="."]
|
||||
modulate = Color(1.8049e-07, 0.391665, 0.150329, 1)
|
||||
|
|
@ -19,56 +19,16 @@ 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="Cyclones" type="Node2D" parent="."]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Cyclone"]
|
||||
scale = Vector2(0.2, 0.2)
|
||||
texture = ExtResource("1_1wkcu")
|
||||
[node name="Cyclone" parent="Cyclones" instance=ExtResource("3_u230a")]
|
||||
position = Vector2(514, 230)
|
||||
|
||||
[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="Cyclone2" parent="Cyclones" instance=ExtResource("3_u230a")]
|
||||
position = Vector2(746, 473)
|
||||
|
||||
[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="Cyclone3" parent="Cyclones" instance=ExtResource("3_u230a")]
|
||||
position = Vector2(463, 494)
|
||||
|
||||
[node name="Background" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
|
@ -103,6 +63,3 @@ shape = SubResource("RectangleShape2D_xr6w1")
|
|||
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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue