retrace/Characters/Player/Player.tscn

280 lines
8.5 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=23 format=2]
2019-11-02 16:04:03 +01:00
2019-11-02 19:53:07 +01:00
[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://Shaders/PillScreenRenderer.shader" type="Shader" id=3]
[ext_resource path="res://Shaders/FadeOut.shader" type="Shader" id=4]
[ext_resource path="res://Shaders/Masks/from_center.png" type="Texture" id=5]
[ext_resource path="res://Resources/Audio/dino-eat.wav" type="AudioStream" id=6]
[ext_resource path="res://Resources/Audio/Stop you violated the law.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]
2019-11-02 16:04:03 +01:00
[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( 3 )
shader_param/mask_factor = 0.5
shader_param/true_view = SubResource( 2 )
shader_param/masked_view = SubResource( 1 )
2019-11-02 16:04:03 +01:00
[sub_resource type="ShaderMaterial" id=4]
shader = ExtResource( 4 )
shader_param/cutoff = 1.0
shader_param/smooth_size = 0.135
shader_param/color = null
shader_param/mask = ExtResource( 5 )
2019-11-02 16:04:03 +01:00
[sub_resource type="CylinderShape" id=5]
[sub_resource type="Animation" id=6]
2019-11-21 13:50:49 +01:00
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=7]
2019-11-21 13:31:52 +01:00
tracks/0/type = "value"
2019-11-21 14:17:28 +01:00
tracks/0/path = NodePath("PillTaker/Pills:visible")
2019-11-21 12:22:55 +01:00
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
2019-11-21 13:31:52 +01:00
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ true, false ]
}
tracks/1/type = "value"
2019-11-21 14:17:28 +01:00
tracks/1/path = NodePath("PillTaker/Pills:translation")
2019-11-21 13:31:52 +01:00
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,
2019-11-21 14:17:28 +01:00
"values": [ Vector3( 0, 0, -1 ), Vector3( 0, 0.7, 0 ) ]
2019-11-21 13:31:52 +01:00
}
tracks/2/type = "value"
2019-11-21 14:17:28 +01:00
tracks/2/path = NodePath("PillTaker/Pills:rotation_degrees")
2019-11-21 13:31:52 +01:00
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,
2019-11-21 14:17:28 +01:00
"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( 6 )
} ],
"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=8]
resource_name = "FadeOut"
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 ]
}
2019-12-14 21:05:09 +01:00
[sub_resource type="AudioStreamRandomPitch" id=9]
audio_stream = ExtResource( 9 )
random_pitch = 1.3
2019-12-14 21:05:09 +01:00
[sub_resource type="CylinderShape" id=10]
[node name="Player" type="KinematicBody" groups=[
"Player",
]]
2019-11-21 13:50:49 +01:00
collision_layer = 5
collision_mask = 5
2019-11-02 16:04:03 +01:00
script = ExtResource( 1 )
2019-11-02 19:53:07 +01:00
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")
2019-11-02 16:04:03 +01:00
[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"]
2020-01-25 19:21:28 +01:00
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, 0, 0, 0 )
2019-11-18 16:15:20 +01:00
enabled = true
cast_to = Vector3( 0, 0, 2 )
[node name="Listener" type="Listener" parent="Body/PillCameras"]
current = true
[node name="TrueView" type="Viewport" parent="Body/PillCameras"]
2019-12-14 21:05:09 +01:00
editor/display_folded = true
size = Vector2( 1024, 600 )
render_target_update_mode = 3
2019-12-03 12:42:03 +01:00
audio_listener_enable_3d = true
[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"]
2019-12-14 21:05:09 +01:00
editor/display_folded = true
size = Vector2( 1024, 600 )
render_target_update_mode = 3
2019-12-03 12:42:03 +01:00
audio_listener_enable_3d = true
[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")
2019-11-02 16:04:03 +01:00
[node name="Collider" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
shape = SubResource( 5 )
2019-11-19 12:08:11 +01:00
2019-11-21 13:50:49 +01:00
[node name="WalkAnimationPlayer" type="AnimationPlayer" parent="."]
2019-11-21 13:31:52 +01:00
autoplay = "Walk"
anims/Walk = SubResource( 6 )
2019-11-21 13:50:49 +01:00
[node name="PillAnimationPlayer" type="AnimationPlayer" parent="."]
playback_speed = 2.0
anims/PillTaking = SubResource( 7 )
[node name="FadeOutAnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Body/PillCameras/ScreenTextureFadeOut")
playback_speed = 2.0
anims/FadeOut = SubResource( 8 )
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 7 )
[node name="Eating" type="Spatial" parent="."]
editor/display_folded = true
[node name="Chrum" type="AudioStreamPlayer3D" parent="Eating"]
stream = ExtResource( 6 )
2019-11-21 13:50:49 +01:00
[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 )
2019-12-14 21:05:09 +01:00
stream = SubResource( 9 )
unit_db = -25.0
pitch_scale = 1.5
[node name="HUD" parent="." instance=ExtResource( 10 )]
[node name="PillTaker" type="Spatial" parent="."]
2019-11-21 13:50:49 +01:00
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
script = ExtResource( 11 )
2019-11-21 11:25:59 +01:00
[node name="Pills" parent="PillTaker" instance=ExtResource( 12 )]
2020-01-25 19:21:28 +01:00
transform = Transform( 0.1, 0, 0, 0, -4.37114e-009, 0.1, 0, -0.1, -4.37114e-009, 0, 0.7, 0 )
2019-11-21 13:31:52 +01:00
visible = false
2019-11-21 11:25:59 +01:00
[node name="InteractArea" type="Area" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="InteractArea"]
transform = Transform( 1.2, 0, 0, 0, 1, 0, 0, 0, 1.2, 0, 1, 0 )
2019-12-14 21:05:09 +01:00
shape = SubResource( 10 )
[editable path="HUD"]