meow
This commit is contained in:
parent
ab1797b9ed
commit
d5455ef493
7 changed files with 239 additions and 53 deletions
147
2dWorld.tscn
147
2dWorld.tscn
|
|
@ -1,23 +1,27 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://biu528mgexdyp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b48ofysofsffi" path="res://icon.svg" id="1_2uw02"]
|
||||
[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_xr6w1"]
|
||||
size = Vector2(674, 28)
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_u230a"]
|
||||
size = Vector2(1292, 34)
|
||||
|
||||
[node name="2dWorld" type="Node2D" node_paths=PackedStringArray("camera", "map")]
|
||||
[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="."]
|
||||
modulate = Color(1.8049e-07, 0.391665, 0.150329, 1)
|
||||
texture_filter = 1
|
||||
position = Vector2(589, 319)
|
||||
scale = Vector2(5, 5)
|
||||
texture = ExtResource("1_2uw02")
|
||||
scale = Vector2(2.5, 2.5)
|
||||
texture = ExtResource("2_u230a")
|
||||
|
||||
[node name="Cyclones" type="Node2D" parent="."]
|
||||
|
||||
|
|
@ -30,36 +34,125 @@ position = Vector2(746, 473)
|
|||
[node name="Cyclone3" parent="Cyclones" instance=ExtResource("3_u230a")]
|
||||
position = Vector2(463, 494)
|
||||
|
||||
[node name="Background" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
[node name="UI" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="wall" type="StaticBody2D" parent="."]
|
||||
position = Vector2(581, -12)
|
||||
[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="CollisionShape2D" type="CollisionShape2D" parent="wall"]
|
||||
shape = SubResource("RectangleShape2D_xr6w1")
|
||||
[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="wall2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(592, 647)
|
||||
[node name="Button" type="Button" parent="UI/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Toggle Controls"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall2"]
|
||||
shape = SubResource("RectangleShape2D_xr6w1")
|
||||
[node name="TheControls" type="VBoxContainer" parent="UI/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="wall3" type="StaticBody2D" parent="."]
|
||||
position = Vector2(259, 317)
|
||||
rotation = 1.5708
|
||||
[node name="Speed label" type="Label" parent="UI/Control/VBoxContainer/TheControls"]
|
||||
layout_mode = 2
|
||||
text = "Speed: 1.0x"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall3"]
|
||||
shape = SubResource("RectangleShape2D_xr6w1")
|
||||
[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="wall4" type="StaticBody2D" parent="."]
|
||||
position = Vector2(909, 326)
|
||||
rotation = 1.5708
|
||||
[node name="TabContainer" type="TabContainer" parent="UI/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
current_tab = 0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall4"]
|
||||
shape = SubResource("RectangleShape2D_xr6w1")
|
||||
[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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue