2021-07-09 14:17:25 +02:00
|
|
|
[gd_scene load_steps=13 format=2]
|
2021-06-15 21:58:31 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://scenes/World.gd" type="Script" id=1]
|
2021-06-28 21:51:09 +02:00
|
|
|
[ext_resource path="res://scenes/Grid.gd" type="Script" id=2]
|
2021-06-17 23:03:45 +02:00
|
|
|
[ext_resource path="res://assets/pirate.svg" type="Texture" id=3]
|
2021-06-17 23:04:13 +02:00
|
|
|
[ext_resource path="res://scenes/FPSValue.gd" type="Script" id=4]
|
2021-06-17 23:25:01 +02:00
|
|
|
[ext_resource path="res://scenes/pirate.gd" type="Script" id=5]
|
2021-06-19 23:14:01 +02:00
|
|
|
[ext_resource path="res://fonts/Roboto/Roboto-Regular.ttf" type="DynamicFontData" id=6]
|
2021-06-27 12:26:44 +02:00
|
|
|
[ext_resource path="res://scenes/Editor.gd" type="Script" id=7]
|
2021-06-28 21:51:09 +02:00
|
|
|
[ext_resource path="res://scenes/GridHighlight.gd" type="Script" id=8]
|
2021-07-09 14:17:25 +02:00
|
|
|
[ext_resource path="res://assets/boat.svg" type="Texture" id=9]
|
2021-06-19 23:14:01 +02:00
|
|
|
|
|
|
|
[sub_resource type="DynamicFont" id=1]
|
|
|
|
size = 27
|
|
|
|
font_data = ExtResource( 6 )
|
|
|
|
|
|
|
|
[sub_resource type="Theme" id=2]
|
|
|
|
default_font = SubResource( 1 )
|
|
|
|
|
|
|
|
[sub_resource type="ButtonGroup" id=3]
|
|
|
|
resource_name = "TileTypeGroup"
|
2021-06-15 21:58:31 +02:00
|
|
|
|
|
|
|
[node name="GameRoot" type="Node"]
|
|
|
|
|
|
|
|
[node name="World" type="Node2D" parent="."]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
2021-06-28 21:51:09 +02:00
|
|
|
[node name="Grid" type="Node2D" parent="World"]
|
2021-06-15 21:58:31 +02:00
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
2021-07-07 22:22:07 +02:00
|
|
|
[node name="Islands" type="Node2D" parent="World"]
|
|
|
|
|
2021-06-19 23:14:01 +02:00
|
|
|
[node name="GridHighlight" type="Node2D" parent="World"]
|
2021-06-28 21:51:09 +02:00
|
|
|
script = ExtResource( 8 )
|
2021-06-19 23:14:01 +02:00
|
|
|
|
2021-06-15 21:58:31 +02:00
|
|
|
[node name="UI" type="CanvasLayer" parent="World"]
|
|
|
|
|
|
|
|
[node name="TopContainer" type="HBoxContainer" parent="World/UI"]
|
2021-06-19 23:14:01 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
margin_bottom = 20.0
|
2021-06-15 21:58:31 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-06-19 23:14:01 +02:00
|
|
|
[node name="EditIslandButton" type="CheckButton" parent="World/UI/TopContainer"]
|
2021-06-27 12:26:44 +02:00
|
|
|
margin_right = 117.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_bottom = 40.0
|
2021-06-27 12:26:44 +02:00
|
|
|
text = "Editor"
|
2021-06-15 21:58:31 +02:00
|
|
|
|
2021-07-07 22:22:07 +02:00
|
|
|
[node name="Button" type="Button" parent="World/UI/TopContainer"]
|
2021-06-27 12:26:44 +02:00
|
|
|
margin_left = 121.0
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_right = 192.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
text = "Generate"
|
|
|
|
|
|
|
|
[node name="Offset" type="Label" parent="World/UI/TopContainer"]
|
|
|
|
margin_left = 196.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_top = 13.0
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_right = 243.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "Offset: "
|
|
|
|
|
|
|
|
[node name="OffsetValue" type="Label" parent="World/UI/TopContainer"]
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_left = 247.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_top = 13.0
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_right = 267.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "0,0"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Zoom" type="Label" parent="World/UI/TopContainer"]
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_left = 271.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_top = 13.0
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_right = 320.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_bottom = 27.0
|
|
|
|
text = " Zoom: "
|
|
|
|
|
|
|
|
[node name="ZoomValue" type="Label" parent="World/UI/TopContainer"]
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_left = 324.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_top = 13.0
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_right = 344.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "0.0"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="HexCoord" type="Label" parent="World/UI/TopContainer"]
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_left = 348.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_top = 13.0
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_right = 422.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_bottom = 27.0
|
|
|
|
text = " HexCoord: "
|
|
|
|
|
|
|
|
[node name="HexCoordValue" type="Label" parent="World/UI/TopContainer"]
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_left = 426.0
|
|
|
|
margin_top = 13.0
|
|
|
|
margin_right = 454.0
|
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "(0,0)"
|
|
|
|
|
|
|
|
[node name="WorldCoord" type="Label" parent="World/UI/TopContainer"]
|
|
|
|
margin_left = 458.0
|
|
|
|
margin_top = 13.0
|
|
|
|
margin_right = 541.0
|
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "WorldCoord: "
|
|
|
|
|
|
|
|
[node name="WorldCoordValue" type="Label" parent="World/UI/TopContainer"]
|
|
|
|
margin_left = 545.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_top = 13.0
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_right = 573.0
|
2021-06-15 21:58:31 +02:00
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "(0,0)"
|
2021-06-17 23:03:45 +02:00
|
|
|
|
2021-07-09 18:16:21 +02:00
|
|
|
[node name="TileType" type="Label" parent="World/UI/TopContainer"]
|
2021-07-07 22:22:07 +02:00
|
|
|
margin_left = 577.0
|
2021-07-09 18:16:21 +02:00
|
|
|
margin_top = 13.0
|
|
|
|
margin_right = 600.0
|
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "Tile"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="TileTypeValue" type="Label" parent="World/UI/TopContainer"]
|
|
|
|
margin_left = 604.0
|
|
|
|
margin_top = 13.0
|
|
|
|
margin_right = 638.0
|
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "None"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="World/UI/TopContainer"]
|
|
|
|
margin_left = 642.0
|
|
|
|
margin_right = 646.0
|
2021-06-17 23:04:13 +02:00
|
|
|
margin_bottom = 40.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="FPSValue" type="Label" parent="World/UI/TopContainer"]
|
2021-07-09 18:16:21 +02:00
|
|
|
margin_left = 650.0
|
2021-06-17 23:04:13 +02:00
|
|
|
margin_top = 13.0
|
2021-07-09 18:16:21 +02:00
|
|
|
margin_right = 658.0
|
2021-06-17 23:04:13 +02:00
|
|
|
margin_bottom = 27.0
|
|
|
|
text = "0"
|
|
|
|
align = 2
|
|
|
|
script = ExtResource( 4 )
|
2021-06-17 23:25:01 +02:00
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="PlayerChar" type="KinematicBody2D" parent="World"]
|
|
|
|
script = ExtResource( 5 )
|
|
|
|
|
|
|
|
[node name="pirate" type="Sprite" parent="World/PlayerChar"]
|
|
|
|
scale = Vector2( 0.45498, 0.45498 )
|
|
|
|
texture = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="World/PlayerChar"]
|
|
|
|
|
2021-07-09 14:17:25 +02:00
|
|
|
[node name="Camera" type="Camera2D" parent="World"]
|
|
|
|
current = true
|
|
|
|
|
|
|
|
[node name="PlayerBoat" type="Node2D" parent="World"]
|
|
|
|
|
|
|
|
[node name="boat" type="Sprite" parent="World/PlayerBoat"]
|
|
|
|
scale = Vector2( 0.455, 0.455 )
|
|
|
|
texture = ExtResource( 9 )
|
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="Editor" type="Node2D" parent="."]
|
|
|
|
script = ExtResource( 7 )
|
|
|
|
|
|
|
|
[node name="UI" type="CanvasLayer" parent="Editor"]
|
|
|
|
|
|
|
|
[node name="Editor" type="VBoxContainer" parent="Editor/UI"]
|
2021-07-07 22:22:07 +02:00
|
|
|
visible = false
|
2021-06-22 22:47:01 +02:00
|
|
|
margin_left = 12.0
|
|
|
|
margin_top = 53.0
|
2021-06-27 12:26:44 +02:00
|
|
|
margin_right = 94.0
|
2021-06-22 22:47:01 +02:00
|
|
|
margin_bottom = 600.0
|
2021-06-19 23:14:01 +02:00
|
|
|
theme = SubResource( 2 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-06-28 22:34:48 +02:00
|
|
|
[node name="Island" type="Label" parent="Editor/UI/Editor"]
|
|
|
|
margin_right = 110.0
|
2021-06-22 22:47:01 +02:00
|
|
|
margin_bottom = 33.0
|
2021-06-28 22:34:48 +02:00
|
|
|
text = "Island"
|
2021-06-22 22:47:01 +02:00
|
|
|
|
2021-06-28 22:34:48 +02:00
|
|
|
[node name="IslandIndex" type="SpinBox" parent="Editor/UI/Editor"]
|
2021-06-22 22:47:01 +02:00
|
|
|
margin_top = 37.0
|
2021-06-28 22:34:48 +02:00
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 80.0
|
|
|
|
max_value = 9.0
|
|
|
|
|
|
|
|
[node name="ClearWorldButton" type="Button" parent="Editor/UI/Editor"]
|
|
|
|
margin_top = 84.0
|
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 123.0
|
2021-06-22 22:47:01 +02:00
|
|
|
text = "Clear"
|
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="LoadWorldButton" type="Button" parent="Editor/UI/Editor"]
|
2021-06-28 22:34:48 +02:00
|
|
|
margin_top = 127.0
|
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 166.0
|
2021-06-22 22:47:01 +02:00
|
|
|
text = "Load"
|
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="SaveWorldButton" type="Button" parent="Editor/UI/Editor"]
|
2021-06-28 22:34:48 +02:00
|
|
|
margin_top = 170.0
|
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 209.0
|
2021-06-22 22:47:01 +02:00
|
|
|
text = "Save"
|
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="Label" type="Label" parent="Editor/UI/Editor"]
|
2021-06-28 22:34:48 +02:00
|
|
|
margin_top = 213.0
|
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 246.0
|
2021-06-22 22:47:01 +02:00
|
|
|
text = "Tiles"
|
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="NoneButton" type="Button" parent="Editor/UI/Editor"]
|
2021-06-28 22:34:48 +02:00
|
|
|
margin_top = 250.0
|
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 289.0
|
2021-06-19 23:14:01 +02:00
|
|
|
rect_pivot_offset = Vector2( -1239.87, 282.07 )
|
|
|
|
toggle_mode = true
|
|
|
|
group = SubResource( 3 )
|
|
|
|
text = "None"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="SandButton" type="Button" parent="Editor/UI/Editor"]
|
2021-06-28 22:34:48 +02:00
|
|
|
margin_top = 293.0
|
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 332.0
|
2021-06-19 23:14:01 +02:00
|
|
|
rect_pivot_offset = Vector2( -1239.87, 282.07 )
|
|
|
|
toggle_mode = true
|
|
|
|
group = SubResource( 3 )
|
|
|
|
text = "Sand"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-06-27 12:26:44 +02:00
|
|
|
[node name="GrassButton" type="Button" parent="Editor/UI/Editor"]
|
2021-06-28 22:34:48 +02:00
|
|
|
margin_top = 336.0
|
|
|
|
margin_right = 110.0
|
|
|
|
margin_bottom = 375.0
|
2021-06-19 23:14:01 +02:00
|
|
|
rect_pivot_offset = Vector2( -1239.87, 282.07 )
|
|
|
|
toggle_mode = true
|
|
|
|
group = SubResource( 3 )
|
|
|
|
text = "Grass"
|
2021-06-27 12:26:44 +02:00
|
|
|
[connection signal="toggled" from="World/UI/TopContainer/EditIslandButton" to="Editor" method="_on_EditIslandButton_toggled"]
|
2021-07-07 22:22:07 +02:00
|
|
|
[connection signal="pressed" from="World/UI/TopContainer/Button" to="World" method="_on_generate_button_pressed"]
|
2021-06-28 22:34:48 +02:00
|
|
|
[connection signal="value_changed" from="Editor/UI/Editor/IslandIndex" to="Editor" method="_on_IslandIndex_value_changed"]
|
2021-06-27 12:26:44 +02:00
|
|
|
[connection signal="pressed" from="Editor/UI/Editor/ClearWorldButton" to="Editor" method="_on_ClearWorldButton_pressed"]
|
|
|
|
[connection signal="pressed" from="Editor/UI/Editor/LoadWorldButton" to="Editor" method="_on_LoadWorldButton_pressed"]
|
|
|
|
[connection signal="pressed" from="Editor/UI/Editor/SaveWorldButton" to="Editor" method="_on_SaveWorldButton_pressed"]
|