GodotComponentTest/scenes/AdaptiveWorldStream.tscn

218 lines
6.3 KiB
Plaintext
Raw Normal View History

2022-12-04 21:54:44 +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://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-12-04 20:51:02 +01:00
[ext_resource path="res://components/MovableComponent.cs" type="Script" id=8]
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 )]
2022-11-20 20:13:42 +01:00
[node name="World" type="Spatial" parent="."]
script = ExtResource( 3 )
2022-12-03 20:34:01 +01:00
[node name="DirectionalLight" type="DirectionalLight" parent="World"]
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
2022-12-03 20:34:01 +01:00
2022-11-20 20:13:42 +01:00
[node name="Control" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
2022-12-04 20:51:02 +01:00
mouse_filter = 2
2022-11-20 20:13:42 +01:00
[node name="HBoxContainer" type="HBoxContainer" parent="Control"]
margin_right = 40.0
margin_bottom = 40.0
2022-12-04 20:51:02 +01:00
mouse_filter = 2
2022-11-20 20:13:42 +01:00
2022-12-02 21:09:40 +01:00
[node name="GridContainer" type="GridContainer" parent="Control/HBoxContainer"]
2022-12-03 20:34:01 +01:00
margin_right = 127.0
margin_bottom = 158.0
2022-12-04 20:51:02 +01:00
mouse_filter = 2
2022-12-02 21:09:40 +01:00
columns = 2
2022-12-03 20:34:01 +01:00
[node name="Label9" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_right = 103.0
2022-12-02 21:09:40 +01:00
margin_bottom = 14.0
2022-11-20 20:13:42 +01:00
rect_pivot_offset = Vector2( -335, -33 )
2022-12-03 20:34:01 +01:00
text = "FPS"
2022-11-20 20:13:42 +01:00
2022-12-03 20:34:01 +01:00
[node name="fps_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
margin_right = 127.0
2022-12-02 21:09:40 +01:00
margin_bottom = 14.0
2022-11-20 20:13:42 +01:00
text = "0,0"
2022-12-03 20:34:01 +01:00
[node name="Label" type="Label" parent="Control/HBoxContainer/GridContainer"]
2022-12-02 21:09:40 +01:00
margin_top = 18.0
2022-12-03 20:34:01 +01:00
margin_right = 103.0
2022-12-02 21:09:40 +01:00
margin_bottom = 32.0
2022-12-03 20:34:01 +01:00
rect_pivot_offset = Vector2( -335, -33 )
text = "Tile"
2022-11-20 20:13:42 +01:00
2022-12-03 20:34:01 +01:00
[node name="tile_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
2022-12-02 21:09:40 +01:00
margin_top = 18.0
2022-12-03 20:34:01 +01:00
margin_right = 127.0
2022-12-02 21:09:40 +01:00
margin_bottom = 32.0
2022-11-20 20:13:42 +01:00
text = "0,0"
2022-12-03 20:34:01 +01:00
[node name="Label2" type="Label" parent="Control/HBoxContainer/GridContainer"]
2022-12-02 21:09:40 +01:00
margin_top = 36.0
2022-12-03 20:34:01 +01:00
margin_right = 103.0
2022-12-02 21:09:40 +01:00
margin_bottom = 50.0
2022-12-03 20:34:01 +01:00
text = "Tile Offset"
2022-12-02 21:09:40 +01:00
2022-12-03 20:34:01 +01:00
[node name="tile_offset_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
2022-12-02 21:09:40 +01:00
margin_top = 36.0
2022-12-03 20:34:01 +01:00
margin_right = 127.0
2022-12-02 21:09:40 +01:00
margin_bottom = 50.0
text = "0,0"
2022-12-03 20:34:01 +01:00
[node name="Label4" type="Label" parent="Control/HBoxContainer/GridContainer"]
2022-12-02 21:09:40 +01:00
margin_top = 54.0
2022-12-03 20:34:01 +01:00
margin_right = 103.0
2022-12-02 21:09:40 +01:00
margin_bottom = 68.0
rect_pivot_offset = Vector2( -335, -33 )
2022-12-03 20:34:01 +01:00
text = "Mouse World"
2022-12-02 21:09:40 +01:00
2022-12-03 20:34:01 +01:00
[node name="mouse_world_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
2022-12-02 21:09:40 +01:00
margin_top = 54.0
2022-12-03 20:34:01 +01:00
margin_right = 127.0
2022-12-02 21:09:40 +01:00
margin_bottom = 68.0
text = "0,0"
2022-12-03 20:34:01 +01:00
[node name="Label6" type="Label" parent="Control/HBoxContainer/GridContainer"]
2022-12-02 21:09:40 +01:00
margin_top = 72.0
2022-12-03 20:34:01 +01:00
margin_right = 103.0
2022-12-02 21:09:40 +01:00
margin_bottom = 86.0
2022-12-03 20:34:01 +01:00
rect_pivot_offset = Vector2( -335, -33 )
text = "Mouse Tile"
2022-11-20 20:13:42 +01:00
2022-12-03 20:34:01 +01:00
[node name="mouse_tile_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
2022-12-02 21:09:40 +01:00
margin_top = 72.0
2022-12-03 20:34:01 +01:00
margin_right = 127.0
2022-12-02 21:09:40 +01:00
margin_bottom = 86.0
2022-12-03 20:34:01 +01:00
text = "0,0"
2022-11-20 20:13:42 +01:00
2022-12-03 20:34:01 +01:00
[node name="Label3" type="Label" parent="Control/HBoxContainer/GridContainer"]
2022-12-02 21:09:40 +01:00
margin_top = 90.0
2022-12-03 20:34:01 +01:00
margin_right = 103.0
2022-12-02 21:09:40 +01:00
margin_bottom = 104.0
2022-12-03 20:34:01 +01:00
text = "#Tiles"
2022-11-20 20:13:42 +01:00
2022-12-03 20:34:01 +01:00
[node name="num_tiles_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
2022-12-02 21:09:40 +01:00
margin_top = 90.0
2022-12-03 20:34:01 +01:00
margin_right = 127.0
2022-12-02 21:09:40 +01:00
margin_bottom = 104.0
2022-11-20 20:13:42 +01:00
text = "0"
2022-12-03 20:34:01 +01:00
[node name="Label5" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_top = 108.0
margin_right = 103.0
margin_bottom = 122.0
text = "#Active"
[node name="num_active_tiles_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
margin_top = 108.0
margin_right = 127.0
margin_bottom = 122.0
text = "0"
[node name="Label7" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_top = 126.0
margin_right = 103.0
margin_bottom = 140.0
text = "#Tiles Added"
[node name="num_coords_added_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
margin_top = 126.0
margin_right = 127.0
margin_bottom = 140.0
text = "0"
[node name="Label8" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_top = 144.0
margin_right = 103.0
margin_bottom = 158.0
text = "#Tiles Removed"
[node name="num_coords_removed_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
margin_left = 107.0
margin_top = 144.0
margin_right = 127.0
margin_bottom = 158.0
text = "0"
2022-11-20 20:13:42 +01:00
[node name="StreamContainer" type="Spatial" parent="."]
script = ExtResource( 4 )
Dimensions = Vector2( 18, 17 )
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-12-03 20:34:01 +01:00
visible = false
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"]
2022-12-03 20:34:01 +01:00
transform = Transform( 1, 0, 0, 0, 0.511698, 0.859165, 0, -0.859165, 0.511698, -4.76837e-07, 6.61621, 3.80453 )
2022-12-03 00:43:19 +01:00
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-12-04 20:51:02 +01:00
[node name="Movable" type="Node" parent="Player"]
script = ExtResource( 8 )