[gd_scene load_steps=7 format=3 uid="uid://biu528mgexdyp"] [ext_resource type="Script" uid="uid://bdc53dgnhonif" path="res://worldManager.gd" id="1_gy87s"] [ext_resource type="Texture2D" uid="uid://c4auuun5q0gjy" path="res://Sprites/captains_flat.png" id="2_u230a"] [ext_resource type="Script" uid="uid://b1w10iwwhm5bj" path="res://addons/Fantail-Interactive.top_down_camera/td_camera_2d.gd" id="4_u230a"] [ext_resource type="Script" uid="uid://c31ds6gafd223" path="res://cyclone_spawner.gd" id="5_3wvl1"] [ext_resource type="Texture2D" uid="uid://bqk4uax36mf72" path="res://Sprites/spawner.png" id="6_3wvl1"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_u230a"] size = Vector2(1292, 34) [node name="2dWorld" type="Node2D" node_paths=PackedStringArray("camera", "map", "cyclone_holder", "speed_slider", "speed_label", "file_picker", "spawner_prop", "walls_node", "walls_button")] script = ExtResource("1_gy87s") camera = NodePath("TDCamera2D") map = NodePath("WorldMap") cyclone_holder = NodePath("Cyclones") speed_slider = NodePath("UI/Control/VBoxContainer/TabContainer/Show Controls/HSlider") speed_label = NodePath("UI/Control/VBoxContainer/TabContainer/Show Controls/Speed label") file_picker = NodePath("FileDialog") spawner_prop = NodePath("CycloneSpawner") walls_node = NodePath("Walls") walls_button = NodePath("UI/Control/VBoxContainer/TabContainer/Show Controls/Walls") [node name="WorldMap" type="Sprite2D" parent="."] texture_filter = 1 position = Vector2(589, 319) scale = Vector2(2.5, 2.5) texture = ExtResource("2_u230a") [node name="Cyclones" type="Node2D" parent="."] [node name="UI" type="CanvasLayer" parent="."] [node name="Control" type="Control" parent="UI"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 1 [node name="VBoxContainer" type="VBoxContainer" parent="UI/Control"] custom_minimum_size = Vector2(250, 0) layout_mode = 1 anchors_preset = 9 anchor_bottom = 1.0 offset_right = 128.0 grow_vertical = 2 [node name="TabContainer" type="TabContainer" parent="UI/Control/VBoxContainer"] layout_mode = 2 current_tab = 0 [node name="Show Controls" type="VBoxContainer" parent="UI/Control/VBoxContainer/TabContainer"] layout_mode = 2 metadata/_tab_index = 0 [node name="Speed label" type="Label" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 text = "Speed: 1.0x" [node name="HSlider" type="HSlider" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 max_value = 6.0 value = 3.0 tick_count = 7 ticks_on_borders = true [node name="LoadImage" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 text = "Change Image" [node name="Spawn" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 text = "Spawn Cyclone" [node name="meow" type="Label" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 text = "(Press ESC to cancel spawn)" [node name="Walls" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 text = "Toggle Walls" [node name="HSeparator" type="HSeparator" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 [node name="Exit" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Show Controls"] layout_mode = 2 text = "Close Program" [node name="Hide" type="VBoxContainer" parent="UI/Control/VBoxContainer/TabContainer"] visible = false layout_mode = 2 metadata/_tab_index = 1 [node name="TDCamera2D" type="Camera2D" parent="."] position = Vector2(579, 330) script = ExtResource("4_u230a") min_zoom = 6.0 metadata/_custom_type_script = "uid://b1w10iwwhm5bj" [node name="Walls" type="Node2D" parent="."] [node name="StaticBody2D" type="StaticBody2D" parent="Walls"] position = Vector2(-46, -343) [node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D"] position = Vector2(636, 7) shape = SubResource("RectangleShape2D_u230a") [node name="StaticBody2D2" type="StaticBody2D" parent="Walls"] position = Vector2(268, 968) [node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D2"] position = Vector2(319, 7) shape = SubResource("RectangleShape2D_u230a") [node name="StaticBody2D3" type="StaticBody2D" parent="Walls"] position = Vector2(-57, 1) rotation = 1.57079 [node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D3"] position = Vector2(319, 7) shape = SubResource("RectangleShape2D_u230a") [node name="StaticBody2D4" type="StaticBody2D" parent="Walls"] position = Vector2(1251, 4) rotation = 1.57079 [node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D4"] position = Vector2(319, 7) shape = SubResource("RectangleShape2D_u230a") [node name="FileDialog" type="FileDialog" parent="."] title = "Open a File" ok_button_text = "Open" file_mode = 0 access = 2 filters = PackedStringArray("*.png") use_native_dialog = true [node name="CycloneSpawner" type="Node2D" parent="."] visible = false script = ExtResource("5_3wvl1") [node name="Sprite2D" type="Sprite2D" parent="CycloneSpawner"] scale = Vector2(0.5, 0.5) texture = ExtResource("6_3wvl1") [connection signal="pressed" from="UI/Control/VBoxContainer/TabContainer/Show Controls/LoadImage" to="." method="_on_load_image_pressed"] [connection signal="pressed" from="UI/Control/VBoxContainer/TabContainer/Show Controls/Spawn" to="." method="_on_spawn_pressed"] [connection signal="pressed" from="UI/Control/VBoxContainer/TabContainer/Show Controls/Walls" to="." method="_on_walls_pressed"] [connection signal="pressed" from="UI/Control/VBoxContainer/TabContainer/Show Controls/Exit" to="." method="_on_exit_pressed"] [connection signal="file_selected" from="FileDialog" to="." method="_on_file_dialog_file_selected"] [connection signal="spawn" from="CycloneSpawner" to="." method="_on_cyclone_spawner_spawn"]