GodotComponentTest/scenes/AdaptiveWorldStream.tscn

185 lines
5.3 KiB
Plaintext
Raw Normal View History

2022-12-02 21:09:40 +01:00
[gd_scene load_steps=13 format=2]
2022-11-20 20:13:42 +01:00
2022-12-02 21:09:40 +01:00
[ext_resource path="res://scenes/AdaptiveWorldStream.cs" type="Script" id=1]
2022-11-20 20:13:42 +01:00
[ext_resource path="res://entities/Player3D.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/World.gd" type="Script" id=3]
2022-12-02 21:09:40 +01:00
[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]
2022-11-20 20:13:42 +01:00
[sub_resource type="CubeMesh" id=1]
2022-12-03 00:43:19 +01:00
size = Vector3( 1, 1, 1 )
2022-11-20 20:13:42 +01:00
[sub_resource type="SpatialMaterial" id=2]
params_blend_mode = 3
albedo_color = Color( 1, 1, 1, 0.156863 )
2022-12-02 21:09:40 +01:00
[sub_resource type="BoxShape" id=9]
2022-12-03 00:43:19 +01:00
extents = Vector3( 20, 1, 20 )
2022-12-02 21:09:40 +01:00
[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
2022-11-20 20:13:42 +01:00
[node name="AdaptiveWorldStream" type="Spatial"]
script = ExtResource( 1 )
2022-12-02 21:09:40 +01:00
[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
2022-11-20 20:13:42 +01:00
2022-12-02 21:09:40 +01:00
[node name="Movable" parent="OPlayer" index="3"]
visible = false
2022-11-20 20:13:42 +01:00
[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
2022-12-02 21:09:40 +01:00
[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
2022-11-20 20:13:42 +01:00
rect_pivot_offset = Vector2( -335, -33 )
text = "Tile"
2022-12-02 21:09:40 +01:00
[node name="tile_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 89.0
margin_right = 109.0
margin_bottom = 14.0
2022-11-20 20:13:42 +01:00
text = "0,0"
2022-12-02 21:09:40 +01:00
[node name="Label2" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_top = 18.0
margin_right = 85.0
margin_bottom = 32.0
2022-11-20 20:13:42 +01:00
text = "Tile Offset"
2022-12-02 21:09:40 +01:00
[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
2022-11-20 20:13:42 +01:00
text = "0,0"
2022-12-02 21:09:40 +01:00
[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
2022-11-20 20:13:42 +01:00
text = "#Tiles"
2022-12-02 21:09:40 +01:00
[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
2022-11-20 20:13:42 +01:00
text = "0"
2022-12-02 21:09:40 +01:00
[node name="Label5" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_top = 90.0
margin_right = 85.0
margin_bottom = 104.0
2022-11-20 20:13:42 +01:00
text = "#Active"
2022-12-02 21:09:40 +01:00
[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
2022-11-20 20:13:42 +01:00
text = "0"
[node name="StreamContainer" type="Spatial" parent="."]
script = ExtResource( 4 )
2022-12-03 00:43:19 +01:00
_dimensions = Vector2( 9, 3 )
2022-11-20 20:13:42 +01:00
[node name="ActiveTiles" type="Spatial" parent="StreamContainer"]
[node name="Bounds" type="MeshInstance" parent="StreamContainer"]
2022-12-03 00:43:19 +01:00
transform = Transform( 4, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0 )
2022-11-20 20:13:42 +01:00
mesh = SubResource( 1 )
skeleton = NodePath("../..")
material/0 = SubResource( 2 )
2022-12-02 21:09:40 +01:00
[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="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 )
2022-12-03 00:43:19 +01:00
[node name="Camera" type="Camera" parent="Player"]
transform = Transform( 1, 0, 0, 0, 0.511698, 0.859165, 0, -0.859165, 0.511698, -4.76837e-07, 16.8698, 14.3365 )
current = true
fov = 60.0
script = ExtResource( 6 )
2022-12-02 21:09:40 +01:00
[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 )
2022-11-20 20:13:42 +01:00
[connection signal="world_generated" from="World" to="." method="_on_World_world_generated"]
2022-12-02 21:09:40 +01:00
[editable path="OPlayer"]