158 lines
5.2 KiB
Text
158 lines
5.2 KiB
Text
[gd_scene load_steps=6 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="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="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")]
|
|
script = ExtResource("1_gy87s")
|
|
camera = NodePath("TDCamera2D")
|
|
map = NodePath("WorldMap")
|
|
cyclone_holder = NodePath("Cyclones")
|
|
speed_slider = NodePath("UI/Control/VBoxContainer/TheControls/HSlider")
|
|
speed_label = NodePath("UI/Control/VBoxContainer/TheControls/Speed label")
|
|
file_picker = NodePath("FileDialog")
|
|
|
|
[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="Cyclone" parent="Cyclones" instance=ExtResource("3_u230a")]
|
|
position = Vector2(514, 230)
|
|
|
|
[node name="Cyclone2" parent="Cyclones" instance=ExtResource("3_u230a")]
|
|
position = Vector2(746, 473)
|
|
|
|
[node name="Cyclone3" parent="Cyclones" instance=ExtResource("3_u230a")]
|
|
position = Vector2(463, 494)
|
|
|
|
[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="Button" type="Button" parent="UI/Control/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Toggle Controls"
|
|
|
|
[node name="TheControls" type="VBoxContainer" parent="UI/Control/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Speed label" type="Label" parent="UI/Control/VBoxContainer/TheControls"]
|
|
layout_mode = 2
|
|
text = "Speed: 1.0x"
|
|
|
|
[node name="HSlider" type="HSlider" parent="UI/Control/VBoxContainer/TheControls"]
|
|
layout_mode = 2
|
|
max_value = 6.0
|
|
value = 3.0
|
|
tick_count = 7
|
|
ticks_on_borders = true
|
|
|
|
[node name="TabContainer" type="TabContainer" parent="UI/Control/VBoxContainer"]
|
|
layout_mode = 2
|
|
current_tab = 0
|
|
|
|
[node name="Tools" type="VBoxContainer" parent="UI/Control/VBoxContainer/TabContainer"]
|
|
layout_mode = 2
|
|
metadata/_tab_index = 0
|
|
|
|
[node name="meow" type="Label" parent="UI/Control/VBoxContainer/TabContainer/Tools"]
|
|
layout_mode = 2
|
|
text = "meow"
|
|
|
|
[node name="LoadImage" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Tools"]
|
|
layout_mode = 2
|
|
text = "Change Image"
|
|
|
|
[node name="Spawn" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Tools"]
|
|
layout_mode = 2
|
|
text = "Spawn Cyclone"
|
|
|
|
[node name="Spawn2" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Tools"]
|
|
layout_mode = 2
|
|
text = "Toggle Walls"
|
|
|
|
[node name="Exit" type="Button" parent="UI/Control/VBoxContainer/TabContainer/Tools"]
|
|
layout_mode = 2
|
|
text = "Close Program"
|
|
|
|
[node name="Settings" type="VBoxContainer" parent="UI/Control/VBoxContainer/TabContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
metadata/_tab_index = 1
|
|
|
|
[node name="meow" type="Label" parent="UI/Control/VBoxContainer/TabContainer/Settings"]
|
|
layout_mode = 2
|
|
text = "meow"
|
|
|
|
[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
|
|
|
|
[connection signal="pressed" from="UI/Control/VBoxContainer/TabContainer/Tools/LoadImage" to="." method="_on_load_image_pressed"]
|
|
[connection signal="file_selected" from="FileDialog" to="." method="_on_file_dialog_file_selected"]
|