184 lines
5.2 KiB
Plaintext
184 lines
5.2 KiB
Plaintext
[gd_scene load_steps=13 format=2]
|
|
|
|
[ext_resource path="res://scenes/AdaptiveWorldStream.cs" type="Script" id=1]
|
|
[ext_resource path="res://entities/Player3D.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://scenes/World.gd" type="Script" id=3]
|
|
[ext_resource path="res://scenes/StreamContainer.cs" type="Script" id=4]
|
|
[ext_resource path="res://entities/Player.cs" type="Script" id=5]
|
|
[ext_resource path="res://scenes/DebugCamera.gd" type="Script" id=6]
|
|
[ext_resource path="res://utils/TileHighlight.tscn" type="PackedScene" id=7]
|
|
|
|
[sub_resource type="CubeMesh" id=1]
|
|
|
|
[sub_resource type="SpatialMaterial" id=2]
|
|
params_blend_mode = 3
|
|
albedo_color = Color( 1, 1, 1, 0.156863 )
|
|
|
|
[sub_resource type="BoxShape" id=9]
|
|
extents = Vector3( 10, 1, 10 )
|
|
|
|
[sub_resource type="CapsuleShape" id=7]
|
|
radius = 0.2
|
|
height = 0.5
|
|
|
|
[sub_resource type="CapsuleMesh" id=8]
|
|
radius = 0.2
|
|
mid_height = 0.5
|
|
radial_segments = 16
|
|
|
|
[node name="AdaptiveWorldStream" type="Spatial"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="TileHighlight" parent="." instance=ExtResource( 7 )]
|
|
|
|
[node name="MouseTileHighlight" parent="." instance=ExtResource( 7 )]
|
|
|
|
[node name="OPlayer" parent="." instance=ExtResource( 2 )]
|
|
visible = false
|
|
|
|
[node name="Camera" parent="OPlayer" index="0"]
|
|
visible = false
|
|
|
|
[node name="MeshInstance" parent="OPlayer" index="1"]
|
|
visible = false
|
|
|
|
[node name="Collision" parent="OPlayer" index="2"]
|
|
visible = false
|
|
|
|
[node name="Movable" parent="OPlayer" index="3"]
|
|
visible = false
|
|
|
|
[node name="World" type="Spatial" parent="."]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Control"]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="Control/HBoxContainer"]
|
|
margin_right = 109.0
|
|
margin_bottom = 104.0
|
|
columns = 2
|
|
|
|
[node name="Label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_right = 85.0
|
|
margin_bottom = 14.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Tile"
|
|
|
|
[node name="tile_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_left = 89.0
|
|
margin_right = 109.0
|
|
margin_bottom = 14.0
|
|
text = "0,0"
|
|
|
|
[node name="Label2" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_top = 18.0
|
|
margin_right = 85.0
|
|
margin_bottom = 32.0
|
|
text = "Tile Offset"
|
|
|
|
[node name="tile_offset_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_left = 89.0
|
|
margin_top = 18.0
|
|
margin_right = 109.0
|
|
margin_bottom = 32.0
|
|
text = "0,0"
|
|
|
|
[node name="Label4" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_top = 36.0
|
|
margin_right = 85.0
|
|
margin_bottom = 50.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Mouse World"
|
|
|
|
[node name="mouse_world_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_left = 89.0
|
|
margin_top = 36.0
|
|
margin_right = 109.0
|
|
margin_bottom = 50.0
|
|
text = "0,0"
|
|
|
|
[node name="Label6" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_top = 54.0
|
|
margin_right = 85.0
|
|
margin_bottom = 68.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Mouse Tile"
|
|
|
|
[node name="mouse_tile_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_left = 89.0
|
|
margin_top = 54.0
|
|
margin_right = 109.0
|
|
margin_bottom = 68.0
|
|
text = "0,0"
|
|
|
|
[node name="Label3" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_top = 72.0
|
|
margin_right = 85.0
|
|
margin_bottom = 86.0
|
|
text = "#Tiles"
|
|
|
|
[node name="num_tiles_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_left = 89.0
|
|
margin_top = 72.0
|
|
margin_right = 109.0
|
|
margin_bottom = 86.0
|
|
text = "0"
|
|
|
|
[node name="Label5" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_top = 90.0
|
|
margin_right = 85.0
|
|
margin_bottom = 104.0
|
|
text = "#Active"
|
|
|
|
[node name="num_active_tiles_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
margin_left = 89.0
|
|
margin_top = 90.0
|
|
margin_right = 109.0
|
|
margin_bottom = 104.0
|
|
text = "0"
|
|
|
|
[node name="StreamContainer" type="Spatial" parent="."]
|
|
script = ExtResource( 4 )
|
|
_dimensions = Vector2( 4, 8 )
|
|
|
|
[node name="ActiveTiles" type="Spatial" parent="StreamContainer"]
|
|
|
|
[node name="Bounds" type="MeshInstance" parent="StreamContainer"]
|
|
transform = Transform( 4, 0, 0, 0, 1, 0, 0, 0, 2, 0, -1, 0 )
|
|
mesh = SubResource( 1 )
|
|
skeleton = NodePath("../..")
|
|
material/0 = SubResource( 2 )
|
|
|
|
[node name="Area" type="Area" parent="StreamContainer"]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="StreamContainer/Area"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
|
|
shape = SubResource( 9 )
|
|
|
|
[node name="Camera" type="Camera" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 0.511698, 0.859165, 0, -0.859165, 0.511698, -4.76837e-07, 7.29903, 4.46831 )
|
|
current = true
|
|
fov = 60.0
|
|
script = ExtResource( 6 )
|
|
|
|
[node name="Player" type="KinematicBody" parent="."]
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Player"]
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, 0 )
|
|
shape = SubResource( 7 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Player"]
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, 0 )
|
|
mesh = SubResource( 8 )
|
|
|
|
[connection signal="world_generated" from="World" to="." method="_on_World_world_generated"]
|
|
|
|
[editable path="OPlayer"]
|