retrace/Characters/Player/Player.tscn
2020-01-27 15:21:49 +01:00

281 lines
8.4 KiB
Plaintext

[gd_scene load_steps=23 format=2]
[ext_resource path="res://Characters/Player/Player.gd" type="Script" id=1]
[ext_resource path="res://Characters/Player/PillCameras.gd" type="Script" id=2]
[ext_resource path="res://Characters/Player/WindowSizeViewport.gd" type="Script" id=3]
[ext_resource path="res://Shaders/PillScreenRenderer.shader" type="Shader" id=4]
[ext_resource path="res://Shaders/FadeOut.shader" type="Shader" id=5]
[ext_resource path="res://Shaders/Masks/from_center.png" type="Texture" id=6]
[ext_resource path="res://Resources/Audio/dino-eat.wav" type="AudioStream" id=7]
[ext_resource path="res://Characters/Player/Footsteps.gd" type="Script" id=8]
[ext_resource path="res://Resources/Audio/Step.wav" type="AudioStream" id=9]
[ext_resource path="res://Characters/Player/UI/UI.tscn" type="PackedScene" id=10]
[ext_resource path="res://Characters/Player/PillTaker.gd" type="Script" id=11]
[ext_resource path="res://Level/Interactables/Pills/Pills.tscn" type="PackedScene" id=12]
[sub_resource type="ViewportTexture" id=1]
viewport_path = NodePath("Body/PillCameras/MaskedView")
[sub_resource type="ViewportTexture" id=2]
viewport_path = NodePath("Body/PillCameras/TrueView")
[sub_resource type="ShaderMaterial" id=3]
resource_local_to_scene = true
shader = ExtResource( 4 )
shader_param/mask_factor = 0.5
shader_param/true_view = SubResource( 2 )
shader_param/masked_view = SubResource( 1 )
[sub_resource type="ShaderMaterial" id=4]
shader = ExtResource( 5 )
shader_param/cutoff = 1.0
shader_param/smooth_size = 0.135
shader_param/color = null
shader_param/mask = ExtResource( 6 )
[sub_resource type="CylinderShape" id=5]
[sub_resource type="CylinderShape" id=6]
[sub_resource type="Animation" id=7]
length = 0.8
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Body/PillCameras:translation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4, 0.6 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 1.8, 0 ), Vector3( -0.1, 1.9, 0 ), Vector3( 0, 1.8, 0 ), Vector3( 0.1, 1.9, 0 ) ]
}
tracks/1/type = "method"
tracks/1/path = NodePath("Footsteps")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.3, 0.7 ),
"transitions": PoolRealArray( 1, 1 ),
"values": [ {
"args": [ ],
"method": "play_footstep"
}, {
"args": [ ],
"method": "play_footstep"
} ]
}
[sub_resource type="Animation" id=8]
tracks/0/type = "value"
tracks/0/path = NodePath("PillTaker/Pills:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ true, false ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("PillTaker/Pills:translation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, -1 ), Vector3( 0, 0.7, 0 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("PillTaker/Pills:rotation_degrees")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 180, 0, 0 ), Vector3( -90, 0, 0 ) ]
}
tracks/3/type = "audio"
tracks/3/path = NodePath("Eating/Chrum")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"clips": [ {
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource( 7 )
} ],
"times": PoolRealArray( 0 )
}
tracks/4/type = "method"
tracks/4/path = NodePath("Eating/Chrum")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ 0.0 ],
"method": "play"
} ]
}
[sub_resource type="Animation" id=9]
length = 2.0
tracks/0/type = "value"
tracks/0/path = NodePath(".:material:shader_param/cutoff")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.8, 1.3, 2 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ 1.0, 0.5, 0.7, 0.0 ]
}
[sub_resource type="AudioStreamRandomPitch" id=10]
audio_stream = ExtResource( 9 )
random_pitch = 1.3
[node name="Player" type="KinematicBody" groups=[
"Player",
]]
collision_layer = 5
collision_mask = 5
script = ExtResource( 1 )
body_nodepath = NodePath("Body")
lookingAt_nodepath = NodePath("Body/PillCameras/LookingAt")
animationWalk_nodepath = NodePath("WalkAnimationPlayer")
animationFadeOut_nodepath = NodePath("FadeOutAnimationPlayer")
ui_interact_nodepath = NodePath("HUD/PressInteract")
camera_nodepath = NodePath("Body/PillCameras")
[node name="Body" type="Spatial" parent="."]
[node name="PillCameras" type="Spatial" parent="Body"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0461721, 1.84617, 0 )
script = ExtResource( 2 )
[node name="LookingAt" type="RayCast" parent="Body/PillCameras"]
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, 0, 0, 0 )
enabled = true
cast_to = Vector3( 0, 0, 2 )
collision_mask = 3
[node name="Listener" type="Listener" parent="Body/PillCameras"]
current = true
[node name="TrueView" type="Viewport" parent="Body/PillCameras"]
render_target_update_mode = 3
audio_listener_enable_3d = true
shadow_atlas_size = 4
script = ExtResource( 3 )
[node name="TrueCamera" type="Camera" parent="Body/PillCameras/TrueView"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0461721, 1.84617, 0 )
cull_mask = 2
current = true
[node name="MaskedView" type="Viewport" parent="Body/PillCameras"]
render_target_update_mode = 3
audio_listener_enable_3d = true
shadow_atlas_size = 4
script = ExtResource( 3 )
[node name="MaskedCamera" type="Camera" parent="Body/PillCameras/MaskedView"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0461721, 1.84617, 0 )
cull_mask = 1
current = true
[node name="ScreenTextureView" type="ColorRect" parent="Body/PillCameras"]
material = SubResource( 3 )
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
color = Color( 0, 0, 0, 1 )
[node name="ScreenTextureFadeOut" type="ColorRect" parent="Body/PillCameras"]
material = SubResource( 4 )
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
color = Color( 0, 0, 0, 1 )
[node name="TrueCameraRemoteTransform" type="RemoteTransform" parent="Body/PillCameras"]
remote_path = NodePath("../TrueView/TrueCamera")
[node name="MaskedCameraRemoteTransform" type="RemoteTransform" parent="Body/PillCameras"]
remote_path = NodePath("../MaskedView/MaskedCamera")
[node name="Collider" type="CollisionShape" parent="."]
transform = Transform( 0.8, 0, 0, 0, 1, 0, 0, 0, 0.8, 0, 1, 0 )
shape = SubResource( 5 )
[node name="InteractArea" type="Area" parent="." groups=[
"Player",
]]
[node name="CollisionShape" type="CollisionShape" parent="InteractArea"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
shape = SubResource( 6 )
[node name="WalkAnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Walk"
anims/Walk = SubResource( 7 )
[node name="PillAnimationPlayer" type="AnimationPlayer" parent="."]
playback_speed = 2.0
anims/PillTaking = SubResource( 8 )
[node name="FadeOutAnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Body/PillCameras/ScreenTextureFadeOut")
playback_speed = 2.0
anims/FadeOut = SubResource( 9 )
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
[node name="Eating" type="Spatial" parent="."]
editor/display_folded = true
[node name="Chrum" type="AudioStreamPlayer3D" parent="Eating"]
stream = ExtResource( 7 )
[node name="Footsteps" type="Spatial" parent="."]
script = ExtResource( 8 )
[node name="Footstep1" type="AudioStreamPlayer3D" parent="Footsteps"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1 )
stream = SubResource( 10 )
unit_db = -25.0
pitch_scale = 1.5
[node name="HUD" parent="." instance=ExtResource( 10 )]
[node name="PillTaker" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
script = ExtResource( 11 )
[node name="Pills" parent="PillTaker" instance=ExtResource( 12 )]
transform = Transform( 0.1, 0, 0, 0, -4.37114e-009, 0.1, 0, -0.1, -4.37114e-009, 0, 0.7, 0 )
visible = false
[editable path="HUD"]