417 lines
12 KiB
Plaintext
417 lines
12 KiB
Plaintext
[gd_scene load_steps=24 format=2]
|
|
|
|
[ext_resource path="res://scenes/StreamContainer.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://entities/Player.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://scenes/Camera.tscn" type="PackedScene" id=3]
|
|
[ext_resource path="res://ui/EditorUI.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://utils/TileHighlight.tscn" type="PackedScene" id=5]
|
|
[ext_resource path="res://ui/DebugStatsContainer.gd" type="Script" id=6]
|
|
[ext_resource path="res://scenes/World.cs" type="Script" id=7]
|
|
[ext_resource path="res://scenes/TileWorld.tscn" type="PackedScene" id=8]
|
|
[ext_resource path="res://scenes/Game.cs" type="Script" id=9]
|
|
[ext_resource path="res://scenes/TileInstanceManager.cs" type="Script" id=10]
|
|
[ext_resource path="res://entities/Chest.tscn" type="PackedScene" id=11]
|
|
[ext_resource path="res://ui/WorldGeneratorUI.gd" type="Script" id=12]
|
|
[ext_resource path="res://assets/Environment/HexTileMesh.tres" type="CylinderMesh" id=13]
|
|
[ext_resource path="res://entities/Axe.tscn" type="PackedScene" id=14]
|
|
[ext_resource path="res://systems/InteractionSystem.cs" type="Script" id=15]
|
|
[ext_resource path="res://entities/rockA.tscn" type="PackedScene" id=16]
|
|
[ext_resource path="res://entities/rockC.tscn" type="PackedScene" id=17]
|
|
[ext_resource path="res://entities/rockB.tscn" type="PackedScene" id=18]
|
|
[ext_resource path="res://entities/Tree.tscn" type="PackedScene" id=19]
|
|
[ext_resource path="res://assets/Environment/grassLarge.tscn" type="PackedScene" id=20]
|
|
|
|
[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 ) ]
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeStateMachinePlayback" id=26]
|
|
|
|
[sub_resource type="MultiMesh" id=27]
|
|
color_format = 1
|
|
transform_format = 1
|
|
custom_data_format = 1
|
|
visible_instance_count = 0
|
|
mesh = ExtResource( 13 )
|
|
|
|
[node name="Game" type="Spatial"]
|
|
script = ExtResource( 9 )
|
|
|
|
[node name="TileHighlight" parent="." instance=ExtResource( 5 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0 )
|
|
visible = false
|
|
|
|
[node name="MouseTileHighlight" parent="." instance=ExtResource( 5 )]
|
|
|
|
[node name="TileWorld" parent="." instance=ExtResource( 8 )]
|
|
GenerationMapType = 2
|
|
|
|
[node name="GameUI" type="HBoxContainer" parent="."]
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
margin_left = -40.0
|
|
margin_right = -10.0
|
|
margin_bottom = 40.0
|
|
grow_horizontal = 0
|
|
alignment = 2
|
|
|
|
[node name="GoldLabel" type="Label" parent="GameUI"]
|
|
margin_top = 13.0
|
|
margin_right = 30.0
|
|
margin_bottom = 27.0
|
|
text = "Gold"
|
|
|
|
[node name="GoldCount" type="Label" parent="GameUI"]
|
|
margin_left = 34.0
|
|
margin_top = 13.0
|
|
margin_right = 84.0
|
|
margin_bottom = 27.0
|
|
rect_min_size = Vector2( 50, 0 )
|
|
rect_pivot_offset = Vector2( 45, 8 )
|
|
text = "0"
|
|
align = 2
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="GameUI"]
|
|
anims/FlashLabel = SubResource( 25 )
|
|
|
|
[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
|
|
margin_left = -141.0
|
|
margin_top = -172.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
mouse_filter = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="DebugStatsContainer" type="GridContainer" parent="DebugContainer"]
|
|
margin_left = 7.0
|
|
margin_top = 7.0
|
|
margin_right = 134.0
|
|
margin_bottom = 165.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
mouse_filter = 2
|
|
columns = 2
|
|
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
|
|
|
|
[node name="Label9" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 24.0
|
|
margin_right = 113.0
|
|
margin_bottom = 38.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "FPS"
|
|
|
|
[node name="fps_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 24.0
|
|
margin_right = 149.0
|
|
margin_bottom = 38.0
|
|
text = "0,0"
|
|
|
|
[node name="Label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 42.0
|
|
margin_right = 113.0
|
|
margin_bottom = 56.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Center"
|
|
|
|
[node name="center_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 42.0
|
|
margin_right = 149.0
|
|
margin_bottom = 56.0
|
|
text = "0,0"
|
|
|
|
[node name="Label2" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 60.0
|
|
margin_right = 113.0
|
|
margin_bottom = 74.0
|
|
text = "Tile Offset"
|
|
|
|
[node name="tile_offset_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 60.0
|
|
margin_right = 149.0
|
|
margin_bottom = 74.0
|
|
text = "0,0"
|
|
|
|
[node name="Label4" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 78.0
|
|
margin_right = 113.0
|
|
margin_bottom = 92.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Mouse World"
|
|
|
|
[node name="mouse_world_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 78.0
|
|
margin_right = 149.0
|
|
margin_bottom = 92.0
|
|
text = "0,0"
|
|
|
|
[node name="Label6" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 96.0
|
|
margin_right = 113.0
|
|
margin_bottom = 110.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Mouse Tile Offset"
|
|
|
|
[node name="mouse_tile_offset_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 96.0
|
|
margin_right = 149.0
|
|
margin_bottom = 110.0
|
|
text = "0,0"
|
|
|
|
[node name="Label10" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 114.0
|
|
margin_right = 113.0
|
|
margin_bottom = 128.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Mouse Tile Cube"
|
|
|
|
[node name="mouse_tile_cube_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 114.0
|
|
margin_right = 149.0
|
|
margin_bottom = 128.0
|
|
text = "0,0,0"
|
|
|
|
[node name="Label3" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 132.0
|
|
margin_right = 113.0
|
|
margin_bottom = 146.0
|
|
text = "#Tiles"
|
|
|
|
[node name="num_tiles_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 132.0
|
|
margin_right = 149.0
|
|
margin_bottom = 146.0
|
|
text = "0"
|
|
|
|
[node name="Label5" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 150.0
|
|
margin_right = 113.0
|
|
margin_bottom = 164.0
|
|
text = "#Active"
|
|
|
|
[node name="num_active_tiles_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 150.0
|
|
margin_right = 149.0
|
|
margin_bottom = 164.0
|
|
text = "0"
|
|
|
|
[node name="Label7" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 168.0
|
|
margin_right = 113.0
|
|
margin_bottom = 182.0
|
|
text = "#Tiles Added"
|
|
|
|
[node name="num_coords_added_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 168.0
|
|
margin_right = 149.0
|
|
margin_bottom = 182.0
|
|
text = "0"
|
|
|
|
[node name="Label8" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_top = 186.0
|
|
margin_right = 113.0
|
|
margin_bottom = 200.0
|
|
text = "#Tiles Removed"
|
|
|
|
[node name="num_coords_removed_label" type="Label" parent="DebugContainer/DebugStatsContainer"]
|
|
visible = false
|
|
margin_left = 117.0
|
|
margin_top = 186.0
|
|
margin_right = 149.0
|
|
margin_bottom = 200.0
|
|
text = "0"
|
|
|
|
[node name="Generator Container" type="Control" parent="."]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
mouse_filter = 2
|
|
|
|
[node name="WorldGeneratorContainer" type="VBoxContainer" parent="Generator Container"]
|
|
margin_left = 10.0
|
|
margin_top = 10.0
|
|
margin_right = 145.0
|
|
margin_bottom = 94.0
|
|
script = ExtResource( 12 )
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Generator Container/WorldGeneratorContainer"]
|
|
margin_right = 135.0
|
|
margin_bottom = 16.0
|
|
|
|
[node name="WorldSizeSlider" type="HSlider" parent="Generator Container/WorldGeneratorContainer/HBoxContainer"]
|
|
margin_right = 123.0
|
|
margin_bottom = 16.0
|
|
size_flags_horizontal = 3
|
|
min_value = 1.0
|
|
max_value = 256.0
|
|
value = 1.0
|
|
|
|
[node name="WorldSizeLabel" type="Label" parent="Generator Container/WorldGeneratorContainer/HBoxContainer"]
|
|
margin_left = 127.0
|
|
margin_top = 1.0
|
|
margin_right = 135.0
|
|
margin_bottom = 15.0
|
|
text = "4"
|
|
|
|
[node name="WorldGenerateButton" type="Button" parent="Generator Container/WorldGeneratorContainer"]
|
|
margin_top = 20.0
|
|
margin_right = 135.0
|
|
margin_bottom = 40.0
|
|
text = "Generate"
|
|
|
|
[node name="ShowTexturesCheckButton" type="CheckButton" parent="Generator Container/WorldGeneratorContainer"]
|
|
margin_top = 44.0
|
|
margin_right = 135.0
|
|
margin_bottom = 84.0
|
|
text = "Textures"
|
|
|
|
[node name="WorldTextureRect" type="TextureRect" parent="Generator Container/WorldGeneratorContainer"]
|
|
visible = false
|
|
margin_top = 88.0
|
|
margin_right = 135.0
|
|
margin_bottom = 188.0
|
|
rect_min_size = Vector2( 100, 100 )
|
|
expand = true
|
|
stretch_mode = 5
|
|
flip_v = true
|
|
|
|
[node name="HeightTextureRect" type="TextureRect" parent="Generator Container/WorldGeneratorContainer"]
|
|
visible = false
|
|
margin_top = 88.0
|
|
margin_right = 135.0
|
|
margin_bottom = 188.0
|
|
rect_min_size = Vector2( 100, 100 )
|
|
expand = true
|
|
stretch_mode = 5
|
|
flip_v = true
|
|
|
|
[node name="EditorUI" parent="." instance=ExtResource( 4 )]
|
|
visible = false
|
|
|
|
[node name="StreamContainer" parent="." instance=ExtResource( 1 )]
|
|
visible = false
|
|
ShowHexTiles = true
|
|
|
|
[node name="Camera" parent="." instance=ExtResource( 3 )]
|
|
|
|
[node name="InteractionSystem" type="Node" parent="."]
|
|
script = ExtResource( 15 )
|
|
|
|
[node name="NavigationSystem" type="Node" parent="."]
|
|
|
|
[node name="Player" parent="." instance=ExtResource( 2 )]
|
|
TileWorldNode = NodePath("../TileWorld")
|
|
|
|
[node name="ToolAttachement" parent="Player/Geometry/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 )
|
|
|
|
[node name="AnimationTree" parent="Player/Geometry" index="2"]
|
|
parameters/playback = SubResource( 26 )
|
|
|
|
[node name="Entities" type="Spatial" parent="."]
|
|
|
|
[node name="Axe" parent="Entities" instance=ExtResource( 14 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.79762, 0, 0 )
|
|
input_ray_pickable = false
|
|
|
|
[node name="Chest" parent="Entities" instance=ExtResource( 11 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.27709, 0, 1.02593 )
|
|
|
|
[node name="World" type="Spatial" parent="."]
|
|
script = ExtResource( 7 )
|
|
|
|
[node name="Chunks" type="Spatial" parent="World"]
|
|
|
|
[node name="TileInstanceManager" type="Spatial" parent="World"]
|
|
script = ExtResource( 10 )
|
|
World = NodePath("..")
|
|
|
|
[node name="TileMultiMeshInstance" type="MultiMeshInstance" parent="World/TileInstanceManager"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.5, 0 )
|
|
multimesh = SubResource( 27 )
|
|
|
|
[node name="Assets" type="Spatial" parent="World"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
|
|
visible = false
|
|
|
|
[node name="Rocks" type="Spatial" parent="World/Assets"]
|
|
|
|
[node name="rockA" parent="World/Assets/Rocks" instance=ExtResource( 16 )]
|
|
|
|
[node name="rockB" parent="World/Assets/Rocks" instance=ExtResource( 18 )]
|
|
|
|
[node name="rockC" parent="World/Assets/Rocks" instance=ExtResource( 17 )]
|
|
|
|
[node name="Grass" type="Spatial" parent="World/Assets"]
|
|
|
|
[node name="grassLarge" parent="World/Assets/Grass" instance=ExtResource( 20 )]
|
|
|
|
[node name="Trees" type="Spatial" parent="World/Assets"]
|
|
|
|
[node name="tree" parent="World/Assets/Trees" instance=ExtResource( 19 )]
|
|
|
|
[connection signal="toggled" from="DebugContainer/DebugStatsContainer/DebugMenuButton" to="DebugContainer/DebugStatsContainer" method="_on_DebugMenuButton_toggled"]
|
|
[connection signal="value_changed" from="Generator Container/WorldGeneratorContainer/HBoxContainer/WorldSizeSlider" to="Generator Container/WorldGeneratorContainer" method="_on_HSlider_value_changed"]
|
|
[connection signal="toggled" from="Generator Container/WorldGeneratorContainer/ShowTexturesCheckButton" to="Generator Container/WorldGeneratorContainer" method="_on_ShowTexturesCheckButton_toggled"]
|
|
|
|
[editable path="TileWorld"]
|
|
[editable path="StreamContainer"]
|
|
[editable path="Player"]
|
|
[editable path="Player/Geometry"]
|