PirateTreasureHunt/scenes/Game.tscn

198 lines
5.0 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=10 format=2]
[ext_resource path="res://scenes/World.gd" type="Script" id=1]
[ext_resource path="res://scenes/HexTile.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]
[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"
[node name="GameRoot" type="Node"]
[node name="World" type="Node2D" parent="."]
script = ExtResource( 1 )
[node name="Camera" type="Camera2D" parent="World"]
current = true
2021-06-19 23:14:01 +02:00
[node name="GridDrawer" type="Node2D" parent="World"]
script = ExtResource( 2 )
2021-06-19 23:14:01 +02:00
[node name="GridHighlight" type="Node2D" parent="World"]
[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
__meta__ = {
"_edit_use_anchors_": false
}
2021-06-19 23:14:01 +02:00
[node name="EditIslandButton" type="CheckButton" parent="World/UI/TopContainer"]
margin_right = 147.0
margin_bottom = 40.0
2021-06-19 23:14:01 +02:00
pressed = true
text = "Edit Island"
[node name="Offset" type="Label" parent="World/UI/TopContainer"]
2021-06-19 23:14:01 +02:00
margin_left = 151.0
margin_top = 13.0
2021-06-19 23:14:01 +02:00
margin_right = 198.0
margin_bottom = 27.0
text = "Offset: "
[node name="OffsetValue" type="Label" parent="World/UI/TopContainer"]
2021-06-19 23:14:01 +02:00
margin_left = 202.0
margin_top = 13.0
2021-06-19 23:14:01 +02:00
margin_right = 222.0
margin_bottom = 27.0
text = "0,0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Zoom" type="Label" parent="World/UI/TopContainer"]
2021-06-19 23:14:01 +02:00
margin_left = 226.0
margin_top = 13.0
2021-06-19 23:14:01 +02:00
margin_right = 275.0
margin_bottom = 27.0
text = " Zoom: "
[node name="ZoomValue" type="Label" parent="World/UI/TopContainer"]
2021-06-19 23:14:01 +02:00
margin_left = 279.0
margin_top = 13.0
2021-06-19 23:14:01 +02:00
margin_right = 299.0
margin_bottom = 27.0
text = "0.0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HexCoord" type="Label" parent="World/UI/TopContainer"]
2021-06-19 23:14:01 +02:00
margin_left = 303.0
margin_top = 13.0
2021-06-19 23:14:01 +02:00
margin_right = 377.0
margin_bottom = 27.0
text = " HexCoord: "
[node name="HexCoordValue" type="Label" parent="World/UI/TopContainer"]
2021-06-19 23:14:01 +02:00
margin_left = 381.0
margin_top = 13.0
2021-06-19 23:14:01 +02:00
margin_right = 409.0
margin_bottom = 27.0
text = "(0,0)"
2021-06-17 23:03:45 +02:00
2021-06-17 23:04:13 +02:00
[node name="VSeparator" type="VSeparator" parent="World/UI/TopContainer"]
2021-06-19 23:14:01 +02:00
margin_left = 413.0
margin_right = 417.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-06-19 23:14:01 +02:00
margin_left = 421.0
2021-06-17 23:04:13 +02:00
margin_top = 13.0
2021-06-19 23:14:01 +02:00
margin_right = 429.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
[node name="Editor" type="VBoxContainer" parent="World/UI"]
margin_left = 12.0
margin_top = 53.0
margin_right = 82.0
margin_bottom = 600.0
2021-06-19 23:14:01 +02:00
theme = SubResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="World" type="Label" parent="World/UI/Editor"]
margin_right = 82.0
margin_bottom = 33.0
text = "World"
[node name="ClearWorldButton" type="Button" parent="World/UI/Editor"]
margin_top = 37.0
margin_right = 82.0
margin_bottom = 76.0
text = "Clear"
[node name="LoadWorldButton" type="Button" parent="World/UI/Editor"]
margin_top = 80.0
margin_right = 82.0
margin_bottom = 119.0
text = "Load"
[node name="SaveWorldButton" type="Button" parent="World/UI/Editor"]
margin_top = 123.0
margin_right = 82.0
margin_bottom = 162.0
text = "Save"
[node name="Label" type="Label" parent="World/UI/Editor"]
margin_top = 166.0
margin_right = 82.0
margin_bottom = 199.0
text = "Tiles"
[node name="NoneButton" type="Button" parent="World/UI/Editor"]
margin_top = 203.0
2021-06-19 23:14:01 +02:00
margin_right = 82.0
margin_bottom = 242.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
}
[node name="SandButton" type="Button" parent="World/UI/Editor"]
margin_top = 246.0
2021-06-19 23:14:01 +02:00
margin_right = 82.0
margin_bottom = 285.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
}
[node name="GrassButton" type="Button" parent="World/UI/Editor"]
margin_top = 289.0
2021-06-19 23:14:01 +02:00
margin_right = 82.0
margin_bottom = 328.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-17 23:25:01 +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-06-19 23:14:01 +02:00
[node name="Island" type="Node" parent="World"]
[connection signal="pressed" from="World/UI/Editor/ClearWorldButton" to="World" method="_on_ClearWorldButton_pressed"]
[connection signal="pressed" from="World/UI/Editor/LoadWorldButton" to="World" method="_on_LoadWorldButton_pressed"]
[connection signal="pressed" from="World/UI/Editor/SaveWorldButton" to="World" method="_on_SaveWorldButton_pressed"]