2024-01-04 16:41:26 +01:00
|
|
|
[gd_scene load_steps=20 format=2]
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[ext_resource path="res://ui/WorldGeneratorWidget.gd" type="Script" id=1]
|
2023-07-08 18:57:18 +02:00
|
|
|
[ext_resource path="res://entities/Player.tscn" type="PackedScene" id=2]
|
2023-07-09 00:16:37 +02:00
|
|
|
[ext_resource path="res://scenes/Camera.tscn" type="PackedScene" id=3]
|
2023-07-15 00:39:38 +02:00
|
|
|
[ext_resource path="res://ui/EditorUI.tscn" type="PackedScene" id=4]
|
2023-02-12 16:30:56 +01:00
|
|
|
[ext_resource path="res://utils/TileHighlight.tscn" type="PackedScene" id=5]
|
2023-10-05 18:17:48 +02:00
|
|
|
[ext_resource path="res://ui/DebugStatsContainer.gd" type="Script" id=6]
|
2023-12-14 17:27:07 +01:00
|
|
|
[ext_resource path="res://scenes/World.tscn" type="PackedScene" id=7]
|
2023-12-29 09:26:43 +01:00
|
|
|
[ext_resource path="res://ui/WorldGeneratorUI.tscn" type="PackedScene" id=8]
|
2023-02-12 16:30:56 +01:00
|
|
|
[ext_resource path="res://scenes/Game.cs" type="Script" id=9]
|
2024-01-01 15:56:56 +01:00
|
|
|
[ext_resource path="res://entities/Wood.tscn" type="PackedScene" id=10]
|
2023-10-30 22:20:32 +01:00
|
|
|
[ext_resource path="res://entities/Chest.tscn" type="PackedScene" id=11]
|
2024-01-04 16:05:28 +01:00
|
|
|
[ext_resource path="res://ui/game_theme.tres" type="Theme" id=12]
|
2024-01-04 16:41:26 +01:00
|
|
|
[ext_resource path="res://ui/action_buttongroup.tres" type="ButtonGroup" id=13]
|
2023-06-23 15:39:07 +02:00
|
|
|
[ext_resource path="res://entities/Axe.tscn" type="PackedScene" id=14]
|
|
|
|
[ext_resource path="res://systems/InteractionSystem.cs" type="Script" id=15]
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2024-01-01 15:56:56 +01:00
|
|
|
[sub_resource type="Animation" id=27]
|
|
|
|
resource_name = "FlashLabel"
|
|
|
|
length = 0.3
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath("WoodCount:rect_scale")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.1, 0.3 ),
|
|
|
|
"transitions": PoolRealArray( 1, 0.1701, 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector2( 1, 1 ), Vector2( 2, 2 ), Vector2( 1, 1 ) ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=28]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath("WoodCount:rect_scale")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector2( 1, 1 ) ]
|
|
|
|
}
|
|
|
|
|
2023-06-24 16:59:40 +02:00
|
|
|
[sub_resource type="Animation" id=25]
|
|
|
|
resource_name = "FlashLabel"
|
|
|
|
length = 0.3
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath("GoldCount:rect_scale")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.1, 0.3 ),
|
|
|
|
"transitions": PoolRealArray( 1, 0.170755, 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Vector2( 1, 1 ), Vector2( 2, 2 ), Vector2( 1, 1 ) ]
|
|
|
|
}
|
|
|
|
|
2023-07-16 21:52:09 +02:00
|
|
|
[sub_resource type="AnimationNodeStateMachinePlayback" id=26]
|
|
|
|
|
2023-02-12 16:30:56 +01:00
|
|
|
[node name="Game" type="Spatial"]
|
|
|
|
script = ExtResource( 9 )
|
2024-01-04 16:41:26 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_horizontal_guides_": [ -333.0 ]
|
|
|
|
}
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[node name="TileHighlight" parent="." instance=ExtResource( 5 )]
|
2023-05-05 16:26:33 +02:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0 )
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[node name="MouseTileHighlight" parent="." instance=ExtResource( 5 )]
|
|
|
|
|
2024-01-04 16:41:26 +01:00
|
|
|
[node name="GameUI" type="Control" parent="."]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
mouse_filter = 2
|
|
|
|
theme = ExtResource( 12 )
|
|
|
|
|
|
|
|
[node name="TopRight" type="HBoxContainer" parent="GameUI"]
|
2023-06-23 15:39:07 +02:00
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_right = 1.0
|
2024-01-04 16:41:26 +01:00
|
|
|
margin_left = -206.0
|
2023-06-23 15:39:07 +02:00
|
|
|
margin_bottom = 40.0
|
|
|
|
grow_horizontal = 0
|
2024-01-01 15:56:56 +01:00
|
|
|
mouse_filter = 2
|
2023-06-23 15:39:07 +02:00
|
|
|
alignment = 2
|
|
|
|
|
2024-01-04 16:41:26 +01:00
|
|
|
[node name="WoodLabel" type="Label" parent="GameUI/TopRight"]
|
|
|
|
margin_left = 4.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_top = 10.0
|
2024-01-04 16:41:26 +01:00
|
|
|
margin_right = 53.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_bottom = 29.0
|
2024-01-01 15:56:56 +01:00
|
|
|
text = "Wood"
|
|
|
|
|
2024-01-04 16:41:26 +01:00
|
|
|
[node name="WoodCount" type="Label" parent="GameUI/TopRight"]
|
|
|
|
margin_left = 57.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_top = 10.0
|
2024-01-04 16:41:26 +01:00
|
|
|
margin_right = 107.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_bottom = 29.0
|
2024-01-01 15:56:56 +01:00
|
|
|
rect_min_size = Vector2( 50, 0 )
|
2024-01-04 16:05:28 +01:00
|
|
|
rect_pivot_offset = Vector2( 25, 8 )
|
2024-01-01 15:56:56 +01:00
|
|
|
text = "0"
|
2024-01-04 16:05:28 +01:00
|
|
|
align = 1
|
2024-01-01 15:56:56 +01:00
|
|
|
|
2024-01-04 16:41:26 +01:00
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="GameUI/TopRight/WoodCount"]
|
2024-01-01 15:56:56 +01:00
|
|
|
root_node = NodePath("../..")
|
|
|
|
anims/FlashLabel = SubResource( 27 )
|
|
|
|
anims/RESET = SubResource( 28 )
|
|
|
|
|
2024-01-04 16:41:26 +01:00
|
|
|
[node name="GoldLabel" type="Label" parent="GameUI/TopRight"]
|
|
|
|
margin_left = 111.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_top = 10.0
|
2024-01-04 16:41:26 +01:00
|
|
|
margin_right = 152.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_bottom = 29.0
|
2023-06-23 15:39:07 +02:00
|
|
|
text = "Gold"
|
|
|
|
|
2024-01-04 16:41:26 +01:00
|
|
|
[node name="GoldCount" type="Label" parent="GameUI/TopRight"]
|
|
|
|
margin_left = 156.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_top = 10.0
|
2024-01-04 16:41:26 +01:00
|
|
|
margin_right = 206.0
|
2024-01-04 16:05:28 +01:00
|
|
|
margin_bottom = 29.0
|
2023-06-23 15:39:07 +02:00
|
|
|
rect_min_size = Vector2( 50, 0 )
|
2024-01-04 16:05:28 +01:00
|
|
|
rect_pivot_offset = Vector2( 25, 8 )
|
2023-06-23 15:39:07 +02:00
|
|
|
text = "0"
|
2024-01-04 16:05:28 +01:00
|
|
|
align = 1
|
2023-06-23 15:39:07 +02:00
|
|
|
|
2024-01-04 16:41:26 +01:00
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="GameUI/TopRight/GoldCount"]
|
2024-01-01 15:56:56 +01:00
|
|
|
root_node = NodePath("../..")
|
2023-06-24 16:59:40 +02:00
|
|
|
anims/FlashLabel = SubResource( 25 )
|
|
|
|
|
2024-02-28 21:47:40 +01:00
|
|
|
[node name="Actions" type="HBoxContainer" parent="GameUI"]
|
|
|
|
margin_left = 10.0
|
|
|
|
margin_top = 10.0
|
|
|
|
margin_bottom = 40.0
|
2024-01-04 16:41:26 +01:00
|
|
|
|
2024-02-28 21:47:40 +01:00
|
|
|
[node name="WalkActionButton" type="Button" parent="GameUI/Actions"]
|
2024-01-04 16:41:26 +01:00
|
|
|
margin_right = 58.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
rect_min_size = Vector2( 40, 40 )
|
|
|
|
toggle_mode = true
|
|
|
|
pressed = true
|
|
|
|
group = ExtResource( 13 )
|
|
|
|
text = "Walk"
|
|
|
|
|
2024-02-28 21:47:40 +01:00
|
|
|
[node name="BuildActionButton" type="Button" parent="GameUI/Actions"]
|
2024-01-04 16:41:26 +01:00
|
|
|
margin_left = 62.0
|
|
|
|
margin_right = 120.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
toggle_mode = true
|
|
|
|
group = ExtResource( 13 )
|
|
|
|
text = "Build"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="DebugContainer" type="PanelContainer" parent="."]
|
|
|
|
self_modulate = Color( 1, 1, 1, 0.443137 )
|
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2023-12-14 17:27:07 +01:00
|
|
|
margin_left = -67.0
|
|
|
|
margin_top = -34.0
|
2023-06-11 12:45:09 +02:00
|
|
|
grow_horizontal = 0
|
|
|
|
grow_vertical = 0
|
2023-08-13 21:08:12 +02:00
|
|
|
mouse_filter = 2
|
2023-06-10 17:09:24 +02:00
|
|
|
size_flags_horizontal = 3
|
2023-06-11 12:45:09 +02:00
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="DebugStatsContainer" type="GridContainer" parent="DebugContainer"]
|
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
2023-12-14 17:27:07 +01:00
|
|
|
margin_right = 60.0
|
|
|
|
margin_bottom = 27.0
|
2023-06-11 12:45:09 +02:00
|
|
|
grow_horizontal = 0
|
|
|
|
grow_vertical = 0
|
2023-02-12 16:30:56 +01:00
|
|
|
mouse_filter = 2
|
|
|
|
columns = 2
|
2023-10-05 18:17:48 +02:00
|
|
|
script = ExtResource( 6 )
|
|
|
|
|
|
|
|
[node name="DebugMenuButton" type="Button" parent="DebugContainer/DebugStatsContainer"]
|
|
|
|
margin_right = 53.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
toggle_mode = true
|
|
|
|
text = "Debug"
|
|
|
|
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="DebugContainer/DebugStatsContainer"]
|
|
|
|
visible = false
|
|
|
|
margin_left = 57.0
|
|
|
|
margin_right = 61.0
|
|
|
|
margin_bottom = 20.0
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="Label9" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 24.0
|
2023-11-10 11:11:08 +01:00
|
|
|
margin_right = 53.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 38.0
|
2023-02-12 16:30:56 +01:00
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "FPS"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="fps_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 24.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 38.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0,0"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="Label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 42.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 56.0
|
2023-02-12 16:30:56 +01:00
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
2023-09-26 17:00:25 +02:00
|
|
|
text = "Center"
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-09-26 17:00:25 +02:00
|
|
|
[node name="center_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 42.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 56.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0,0"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="Label2" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 60.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 74.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "Tile Offset"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="tile_offset_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 60.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 74.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0,0"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="Label4" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 78.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 92.0
|
2023-02-12 16:30:56 +01:00
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "Mouse World"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="mouse_world_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 78.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 92.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0,0"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="Label6" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-11-10 11:11:08 +01:00
|
|
|
margin_left = 57.0
|
|
|
|
margin_top = 3.0
|
|
|
|
margin_right = 170.0
|
|
|
|
margin_bottom = 17.0
|
2023-02-12 16:30:56 +01:00
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
2023-08-13 21:08:12 +02:00
|
|
|
text = "Mouse Tile Offset"
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="mouse_tile_offset_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 96.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 110.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0,0"
|
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="Label10" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 114.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 128.0
|
2023-08-13 21:08:12 +02:00
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "Mouse Tile Cube"
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="mouse_tile_cube_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 114.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 128.0
|
2023-08-13 21:08:12 +02:00
|
|
|
text = "0,0,0"
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-11-10 11:11:08 +01:00
|
|
|
[node name="Label11" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
|
|
visible = false
|
|
|
|
margin_left = 57.0
|
|
|
|
margin_top = 3.0
|
|
|
|
margin_right = 162.0
|
|
|
|
margin_bottom = 17.0
|
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "Mouse Tile Axial"
|
|
|
|
|
|
|
|
[node name="mouse_tile_axial_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
|
|
visible = false
|
|
|
|
margin_left = 57.0
|
|
|
|
margin_top = 3.0
|
|
|
|
margin_right = 89.0
|
|
|
|
margin_bottom = 17.0
|
|
|
|
text = "0,0,0"
|
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="Label3" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 132.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 146.0
|
2023-08-13 21:08:12 +02:00
|
|
|
text = "#Tiles"
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="num_tiles_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 132.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 146.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0"
|
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="Label5" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 150.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 164.0
|
2023-08-13 21:08:12 +02:00
|
|
|
text = "#Active"
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="num_active_tiles_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 150.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 164.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0"
|
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="Label7" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 168.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 182.0
|
2023-08-13 21:08:12 +02:00
|
|
|
text = "#Tiles Added"
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="num_coords_added_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 168.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 182.0
|
2023-02-12 16:30:56 +01:00
|
|
|
text = "0"
|
|
|
|
|
2023-08-13 21:08:12 +02:00
|
|
|
[node name="Label8" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
|
|
|
margin_top = 186.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 113.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 200.0
|
2023-08-13 21:08:12 +02:00
|
|
|
text = "#Tiles Removed"
|
|
|
|
|
|
|
|
[node name="num_coords_removed_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
2023-10-05 18:17:48 +02:00
|
|
|
visible = false
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_left = 117.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_top = 186.0
|
2023-08-13 21:08:12 +02:00
|
|
|
margin_right = 149.0
|
2023-10-05 18:17:48 +02:00
|
|
|
margin_bottom = 200.0
|
2023-08-13 21:08:12 +02:00
|
|
|
text = "0"
|
|
|
|
|
2023-06-11 12:45:09 +02:00
|
|
|
[node name="Generator Container" type="Control" parent="."]
|
2024-01-04 16:05:28 +01:00
|
|
|
visible = false
|
2023-06-11 12:45:09 +02:00
|
|
|
margin_right = 40.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
mouse_filter = 2
|
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="WorldGeneratorWidget" type="VBoxContainer" parent="Generator Container"]
|
2023-06-11 12:45:09 +02:00
|
|
|
margin_left = 10.0
|
|
|
|
margin_top = 10.0
|
2023-07-07 17:27:05 +02:00
|
|
|
margin_right = 145.0
|
|
|
|
margin_bottom = 94.0
|
2023-12-14 17:27:07 +01:00
|
|
|
script = ExtResource( 1 )
|
2023-06-11 12:45:09 +02:00
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Generator Container/WorldGeneratorWidget"]
|
|
|
|
visible = false
|
2023-07-07 17:20:07 +02:00
|
|
|
margin_right = 135.0
|
2023-06-11 13:22:13 +02:00
|
|
|
margin_bottom = 16.0
|
2023-06-11 12:45:09 +02:00
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="WorldSizeSlider" type="HSlider" parent="Generator Container/WorldGeneratorWidget/HBoxContainer"]
|
2023-07-07 17:20:07 +02:00
|
|
|
margin_right = 123.0
|
2023-06-11 12:45:09 +02:00
|
|
|
margin_bottom = 16.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
min_value = 1.0
|
2023-07-16 20:38:39 +02:00
|
|
|
max_value = 256.0
|
2023-06-11 12:45:09 +02:00
|
|
|
value = 1.0
|
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="WorldSizeLabel" type="Label" parent="Generator Container/WorldGeneratorWidget/HBoxContainer"]
|
2023-07-07 17:20:07 +02:00
|
|
|
margin_left = 127.0
|
2023-06-11 12:45:09 +02:00
|
|
|
margin_top = 1.0
|
2023-07-07 17:20:07 +02:00
|
|
|
margin_right = 135.0
|
2023-06-11 12:45:09 +02:00
|
|
|
margin_bottom = 15.0
|
|
|
|
text = "4"
|
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="WorldGenerateButton" type="Button" parent="Generator Container/WorldGeneratorWidget"]
|
|
|
|
visible = false
|
2024-05-07 18:49:04 +02:00
|
|
|
margin_top = 20.0
|
2023-07-07 17:27:05 +02:00
|
|
|
margin_right = 135.0
|
2024-05-07 18:49:04 +02:00
|
|
|
margin_bottom = 40.0
|
2023-06-11 13:22:13 +02:00
|
|
|
text = "Generate"
|
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="ShowTexturesCheckButton" type="CheckButton" parent="Generator Container/WorldGeneratorWidget"]
|
2023-07-07 17:20:07 +02:00
|
|
|
margin_right = 135.0
|
2023-12-14 17:27:07 +01:00
|
|
|
margin_bottom = 40.0
|
2023-07-07 17:20:07 +02:00
|
|
|
text = "Textures"
|
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="WorldTextureRect" type="TextureRect" parent="Generator Container/WorldGeneratorWidget"]
|
2023-11-01 16:02:39 +01:00
|
|
|
visible = false
|
2023-07-07 17:20:07 +02:00
|
|
|
margin_top = 88.0
|
2023-08-12 12:55:17 +02:00
|
|
|
margin_right = 135.0
|
2023-07-07 17:20:07 +02:00
|
|
|
margin_bottom = 188.0
|
2023-06-11 13:22:13 +02:00
|
|
|
rect_min_size = Vector2( 100, 100 )
|
2023-07-28 22:23:41 +02:00
|
|
|
expand = true
|
|
|
|
stretch_mode = 5
|
2023-06-11 13:22:13 +02:00
|
|
|
flip_v = true
|
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="HeightTextureRect" type="TextureRect" parent="Generator Container/WorldGeneratorWidget"]
|
2023-11-01 16:02:39 +01:00
|
|
|
visible = false
|
2024-05-07 18:49:04 +02:00
|
|
|
margin_top = 192.0
|
2023-08-12 12:55:17 +02:00
|
|
|
margin_right = 135.0
|
2024-05-07 18:49:04 +02:00
|
|
|
margin_bottom = 292.0
|
2023-06-11 13:22:13 +02:00
|
|
|
rect_min_size = Vector2( 100, 100 )
|
2023-07-28 22:23:41 +02:00
|
|
|
expand = true
|
|
|
|
stretch_mode = 5
|
2023-06-11 13:22:13 +02:00
|
|
|
flip_v = true
|
|
|
|
|
2023-07-15 00:39:38 +02:00
|
|
|
[node name="EditorUI" parent="." instance=ExtResource( 4 )]
|
|
|
|
visible = false
|
|
|
|
|
2023-07-09 00:16:37 +02:00
|
|
|
[node name="Camera" parent="." instance=ExtResource( 3 )]
|
2023-11-15 20:57:25 +01:00
|
|
|
transform = Transform( 1, 0, 0, 0, 0.60042, 0.799685, 0, -0.799685, 0.60042, -4.76837e-07, 5.16505, 3.1696 )
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-06-23 15:39:07 +02:00
|
|
|
[node name="InteractionSystem" type="Node" parent="."]
|
|
|
|
script = ExtResource( 15 )
|
|
|
|
|
2023-11-01 16:02:39 +01:00
|
|
|
[node name="NavigationSystem" type="Node" parent="."]
|
|
|
|
|
2023-07-08 18:57:18 +02:00
|
|
|
[node name="Player" parent="." instance=ExtResource( 2 )]
|
2023-12-29 09:26:43 +01:00
|
|
|
EntityMask = 2
|
2023-11-10 11:11:08 +01:00
|
|
|
WorldNode = NodePath("../World")
|
|
|
|
|
|
|
|
[node name="WorldInfo" parent="Player" index="2"]
|
|
|
|
WorldPath = NodePath("../../World")
|
2023-07-07 17:27:05 +02:00
|
|
|
|
2024-01-04 15:45:26 +01:00
|
|
|
[node name="Skeleton" parent="Player/Geometry/PirateAsset/Armature" index="0"]
|
|
|
|
bones/4/bound_children = [ NodePath("ToolAttachement") ]
|
|
|
|
|
|
|
|
[node name="ToolAttachement" parent="Player/Geometry/PirateAsset/Armature/Skeleton" index="5"]
|
|
|
|
transform = Transform( 1, 8.68458e-08, -1.04308e-07, 1.74623e-07, -1, -1.30385e-07, 1.41561e-07, 1.50874e-07, -1, -0.72, 0.45, 3.28113e-08 )
|
|
|
|
|
2024-01-01 17:01:00 +01:00
|
|
|
[node name="AnimationTree" parent="Player/Geometry" index="1"]
|
2023-07-16 21:52:09 +02:00
|
|
|
parameters/playback = SubResource( 26 )
|
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[node name="Entities" type="Spatial" parent="."]
|
2023-04-27 23:56:06 +02:00
|
|
|
|
2023-06-23 15:39:07 +02:00
|
|
|
[node name="Axe" parent="Entities" instance=ExtResource( 14 )]
|
2024-01-04 15:45:26 +01:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.03292, -2.38419e-07, -4.33215 )
|
2023-06-23 15:39:07 +02:00
|
|
|
input_ray_pickable = false
|
2023-06-22 18:50:52 +02:00
|
|
|
|
2023-10-30 22:20:32 +01:00
|
|
|
[node name="Chest" parent="Entities" instance=ExtResource( 11 )]
|
2023-11-15 20:57:25 +01:00
|
|
|
transform = Transform( -0.825665, 0, 0.56416, 0, 1, 0, -0.56416, 0, -0.825665, -3.27709, 0, 1.02593 )
|
2023-10-30 22:20:32 +01:00
|
|
|
|
2024-01-01 15:56:56 +01:00
|
|
|
[node name="Wood" parent="Entities" instance=ExtResource( 10 )]
|
|
|
|
transform = Transform( 0.791533, 0, 0.611126, 0, 1, 0, -0.611126, 0, 0.791533, -2.46279, 0, -0.631194 )
|
|
|
|
|
|
|
|
[node name="Wood2" parent="Entities" instance=ExtResource( 10 )]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.66947, 0, -2.19408 )
|
|
|
|
|
|
|
|
[node name="Wood3" parent="Entities" instance=ExtResource( 10 )]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.89011, 0, 1.70148 )
|
|
|
|
|
|
|
|
[node name="Wood4" parent="Entities" instance=ExtResource( 10 )]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.85616, 0, -2.01499 )
|
|
|
|
|
|
|
|
[node name="Wood5" parent="Entities" instance=ExtResource( 10 )]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.5591, 0, 1.55701 )
|
|
|
|
|
2023-12-14 17:27:07 +01:00
|
|
|
[node name="World" parent="." instance=ExtResource( 7 )]
|
2023-11-05 21:46:28 +01:00
|
|
|
|
2023-11-10 11:11:08 +01:00
|
|
|
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
|
|
|
transform = Transform( 0.328059, -0.878387, 0.347583, 0, 0.367946, 0.929847, -0.944657, -0.305045, 0.120708, 0, 6.59293, 1.20265 )
|
|
|
|
shadow_enabled = true
|
|
|
|
directional_shadow_mode = 0
|
|
|
|
|
2023-12-29 09:26:43 +01:00
|
|
|
[node name="GameMenu" type="Control" parent="."]
|
|
|
|
visible = false
|
|
|
|
anchor_left = 0.1
|
|
|
|
anchor_top = 0.1
|
|
|
|
anchor_right = 0.9
|
|
|
|
anchor_bottom = 0.9
|
|
|
|
|
2024-05-07 18:49:04 +02:00
|
|
|
[node name="MainMenu" type="Panel" parent="GameMenu"]
|
2023-12-29 09:26:43 +01:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
|
2024-05-07 18:49:04 +02:00
|
|
|
[node name="MainMenu" type="VBoxContainer" parent="GameMenu/MainMenu"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -41.0
|
|
|
|
margin_top = -22.0
|
|
|
|
margin_right = 41.0
|
|
|
|
margin_bottom = 22.0
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameMenu/MainMenu/MainMenu"]
|
|
|
|
margin_right = 82.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "Pirate Game"
|
|
|
|
align = 1
|
|
|
|
|
|
|
|
[node name="NewGameButton" type="Button" parent="GameMenu/MainMenu/MainMenu"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 82.0
|
|
|
|
margin_bottom = 38.0
|
|
|
|
text = "New Game"
|
|
|
|
|
|
|
|
[node name="QuitButton" type="Button" parent="GameMenu/MainMenu/MainMenu"]
|
|
|
|
margin_top = 42.0
|
|
|
|
margin_right = 82.0
|
|
|
|
margin_bottom = 62.0
|
|
|
|
text = "Quit"
|
|
|
|
|
|
|
|
[node name="NewGameMenu" type="Panel" parent="GameMenu"]
|
2023-12-29 09:26:43 +01:00
|
|
|
visible = false
|
2024-05-07 18:49:04 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
|
|
|
|
[node name="MainMenu" type="VBoxContainer" parent="GameMenu/NewGameMenu"]
|
2023-12-29 09:26:43 +01:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -41.0
|
|
|
|
margin_top = -10.0
|
|
|
|
margin_right = 41.0
|
|
|
|
margin_bottom = 10.0
|
|
|
|
|
2024-05-07 18:49:04 +02:00
|
|
|
[node name="NewGameButton" type="Button" parent="GameMenu/NewGameMenu/MainMenu"]
|
2023-12-29 09:26:43 +01:00
|
|
|
margin_right = 82.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "New Game"
|
|
|
|
|
2024-05-07 18:49:04 +02:00
|
|
|
[node name="QuitButton" type="Button" parent="GameMenu/NewGameMenu/MainMenu"]
|
2023-12-29 09:26:43 +01:00
|
|
|
margin_top = 24.0
|
|
|
|
margin_right = 82.0
|
|
|
|
margin_bottom = 44.0
|
|
|
|
text = "Quit"
|
|
|
|
|
2024-05-07 18:49:04 +02:00
|
|
|
[node name="WorldGeneratorUI" parent="GameMenu/NewGameMenu" instance=ExtResource( 8 )]
|
2023-12-29 09:26:43 +01:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -143.5
|
|
|
|
margin_top = -160.0
|
|
|
|
margin_right = 143.5
|
|
|
|
margin_bottom = 160.0
|
|
|
|
|
2024-05-07 18:49:04 +02:00
|
|
|
[node name="VBoxContainer" parent="GameMenu/NewGameMenu/WorldGeneratorUI" index="0"]
|
2023-12-29 09:26:43 +01:00
|
|
|
margin_left = 0.0
|
2024-05-07 18:49:04 +02:00
|
|
|
margin_top = 21.0
|
2023-12-29 09:26:43 +01:00
|
|
|
margin_right = 287.0
|
2024-05-07 18:49:04 +02:00
|
|
|
margin_bottom = 299.0
|
|
|
|
|
|
|
|
[node name="Label" parent="GameMenu/NewGameMenu/WorldGeneratorUI/VBoxContainer" index="0"]
|
|
|
|
text = "New World"
|
|
|
|
|
|
|
|
[node name="GameRunningMenu" type="Panel" parent="GameMenu"]
|
|
|
|
visible = false
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GameMenu/GameRunningMenu"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 113.0
|
|
|
|
margin_right = 148.0
|
|
|
|
margin_bottom = 207.0
|
|
|
|
custom_constants/separation = 20
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameMenu/GameRunningMenu/VBoxContainer"]
|
|
|
|
margin_right = 42.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
align = 1
|
|
|
|
|
|
|
|
[node name="SaveButton" type="Button" parent="GameMenu/GameRunningMenu/VBoxContainer"]
|
|
|
|
margin_top = 34.0
|
|
|
|
margin_right = 42.0
|
|
|
|
margin_bottom = 54.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Save"
|
|
|
|
|
|
|
|
[node name="LoadButton" type="Button" parent="GameMenu/GameRunningMenu/VBoxContainer"]
|
|
|
|
margin_top = 74.0
|
|
|
|
margin_right = 42.0
|
|
|
|
margin_bottom = 94.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Load"
|
|
|
|
|
|
|
|
[node name="QuitButton" type="Button" parent="GameMenu/GameRunningMenu/VBoxContainer"]
|
|
|
|
margin_top = 114.0
|
|
|
|
margin_right = 42.0
|
|
|
|
margin_bottom = 134.0
|
|
|
|
text = "Quit"
|
2023-12-29 09:26:43 +01:00
|
|
|
|
2023-10-05 18:17:48 +02:00
|
|
|
[connection signal="toggled" from="DebugContainer/DebugStatsContainer/DebugMenuButton" to="DebugContainer/DebugStatsContainer" method="_on_DebugMenuButton_toggled"]
|
2023-12-14 17:27:07 +01:00
|
|
|
[connection signal="value_changed" from="Generator Container/WorldGeneratorWidget/HBoxContainer/WorldSizeSlider" to="Generator Container/WorldGeneratorWidget" method="_on_HSlider_value_changed"]
|
|
|
|
[connection signal="toggled" from="Generator Container/WorldGeneratorWidget/ShowTexturesCheckButton" to="Generator Container/WorldGeneratorWidget" method="_on_ShowTexturesCheckButton_toggled"]
|
2023-06-10 17:09:24 +02:00
|
|
|
|
2023-07-16 21:52:09 +02:00
|
|
|
[editable path="Player"]
|
2023-11-15 20:57:25 +01:00
|
|
|
[editable path="Player/Geometry/PirateAsset"]
|
2023-12-29 09:26:43 +01:00
|
|
|
[editable path="World"]
|
2024-05-07 18:49:04 +02:00
|
|
|
[editable path="GameMenu/NewGameMenu/WorldGeneratorUI"]
|