austin-3d-test/Main.tscn

59 lines
1.9 KiB
Plaintext

[gd_scene load_steps=6 format=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Pickups.gd" type="Script" id=2]
[ext_resource path="res://UI.gd" type="Script" id=4]
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 0.192157, 0.313726, 0.164706, 1 )
roughness = 0.45
[sub_resource type="PlaneMesh" id=6]
material = SubResource( 5 )
size = Vector2( 250, 250 )
[node name="Main" type="Spatial"]
[node name="Player" parent="." instance=ExtResource( 1 )]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
[node name="RemoteTransform" type="RemoteTransform" parent="Player"]
remote_path = NodePath("../../CameraOffset")
update_scale = false
[node name="Pickups" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1 )
script = ExtResource( 2 )
[node name="Floor" type="MeshInstance" parent="."]
mesh = SubResource( 6 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.615606, 0.318267, -0.720926, 0, 0.914819, 0.403865, 0.788054, -0.248622, 0.563168, 0, 6.48088, 0 )
shadow_enabled = true
directional_shadow_normal_bias = 0.493
[node name="CameraOffset" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
[node name="Camera" type="Camera" parent="CameraOffset"]
transform = Transform( 1, 1.50729e-14, -1.50729e-14, 0, 0.707107, 0.707107, 2.13163e-14, -0.707107, 0.707107, 0, 20, 15 )
[node name="UI" type="CanvasLayer" parent="."]
script = ExtResource( 4 )
[node name="PanelContainer" type="PanelContainer" parent="UI"]
margin_right = 14.0
margin_bottom = 14.0
[node name="FollowRotation" type="CheckBox" parent="UI/PanelContainer"]
margin_left = 7.0
margin_top = 7.0
margin_right = 133.0
margin_bottom = 31.0
pressed = true
text = "Follow Rotation"
[connection signal="toggled" from="UI/PanelContainer/FollowRotation" to="UI" method="_on_FollowRotation_toggled"]