261 lines
9.0 KiB
Plaintext
261 lines
9.0 KiB
Plaintext
[gd_scene load_steps=29 format=2]
|
|
|
|
[ext_resource path="res://player/CameraController.gd" type="Script" id=1]
|
|
[ext_resource path="res://player/OnFootPhysics.gd" type="Script" id=2]
|
|
[ext_resource path="res://player/player.gd" type="Script" id=3]
|
|
[ext_resource path="res://player/MovementInput.gd" type="Script" id=4]
|
|
[ext_resource path="res://addons/smoothing/smoothing.gd" type="Script" id=5]
|
|
[ext_resource path="res://player/PlatformMechanics.gd" type="Script" id=6]
|
|
[ext_resource path="res://player/ElevatorPhysics.gd" type="Script" id=7]
|
|
[ext_resource path="res://effects/player/Flashlight.tscn" type="PackedScene" id=8]
|
|
[ext_resource path="res://assets/audio/388019__saturdaysoundguy__celery-snap.ogg" type="AudioStream" id=9]
|
|
[ext_resource path="res://player/CloseToFloor.gd" type="Script" id=10]
|
|
[ext_resource path="res://player/HighSpeedFOV.gd" type="Script" id=11]
|
|
[ext_resource path="res://player/Overlay.gd" type="Script" id=12]
|
|
[ext_resource path="res://assets/BloodMush.png" type="Texture" id=13]
|
|
[ext_resource path="res://assets/models/walkie_talkie/walkie_talkie.tscn" type="PackedScene" id=14]
|
|
[ext_resource path="res://assets/FootstepSfx/Steps_water-016.ogg" type="AudioStream" id=15]
|
|
[ext_resource path="res://assets/audio/falling_wind.mp3" type="AudioStream" id=16]
|
|
[ext_resource path="res://assets/FootstepSfx/Steps_water-003.ogg" type="AudioStream" id=17]
|
|
[ext_resource path="res://assets/audio/404327__pfranzen__male-grunts-and-groans.ogg" type="AudioStream" id=18]
|
|
[ext_resource path="res://effects/player/MovementSoundsAnimations.gd" type="Script" id=19]
|
|
[ext_resource path="res://screens/PauseScreen.tscn" type="PackedScene" id=20]
|
|
|
|
[sub_resource type="Animation" id=8]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("..:fov")
|
|
tracks/0/interp = 0
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0 ),
|
|
"transitions": PoolRealArray( 1 ),
|
|
"update": 1,
|
|
"values": [ 70.0 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=9]
|
|
resource_name = "fov"
|
|
length = 3.0
|
|
step = 0.061
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("..:fov")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.549, 2.928 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ 70.0, 70.0, 110.0 ]
|
|
}
|
|
|
|
[sub_resource type="CylinderShape" id=4]
|
|
|
|
[sub_resource type="SphereShape" id=5]
|
|
|
|
[sub_resource type="Animation" id=10]
|
|
length = 0.001
|
|
tracks/0/type = "bezier"
|
|
tracks/0/path = NodePath("../Smoothing/CameraController/Rotation/Camera:translation:x")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ),
|
|
"times": PoolRealArray( 0 )
|
|
}
|
|
tracks/1/type = "bezier"
|
|
tracks/1/path = NodePath("../Smoothing/CameraController/Rotation/Camera:translation:y")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/keys = {
|
|
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ),
|
|
"times": PoolRealArray( 0 )
|
|
}
|
|
tracks/2/type = "bezier"
|
|
tracks/2/path = NodePath("../Smoothing/CameraController/Rotation/Camera:translation:z")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/keys = {
|
|
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0 ),
|
|
"times": PoolRealArray( 0 )
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/path = NodePath("../Smoothing/CameraController/Rotation/Camera:translation")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/keys = {
|
|
"times": PoolRealArray( 0 ),
|
|
"transitions": PoolRealArray( 1 ),
|
|
"update": 0,
|
|
"values": [ Vector3( 0, 0, 0 ) ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=11]
|
|
resource_name = "jump_landing"
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("../Smoothing/CameraController/Rotation/Camera: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.1, 0.4 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, -0.161821, 0 ), Vector3( 0, 0, 0 ) ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=6]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath(".:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0 ),
|
|
"transitions": PoolRealArray( 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 0 ) ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=7]
|
|
resource_name = "opacity"
|
|
length = 0.46
|
|
step = 0.007
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath(".:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.112, 0.287, 0.35 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
|
}
|
|
|
|
[node name="Player" type="Spatial"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.750395, 0 )
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Smoothing" type="Spatial" parent="."]
|
|
script = ExtResource( 5 )
|
|
target = NodePath("../OnFootPhysics")
|
|
|
|
[node name="CameraController" type="Spatial" parent="Smoothing"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.391438, 0 )
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Rotation" type="Spatial" parent="Smoothing/CameraController"]
|
|
|
|
[node name="Camera" type="Camera" parent="Smoothing/CameraController/Rotation"]
|
|
keep_aspect = 0
|
|
current = true
|
|
|
|
[node name="Flashlight" parent="Smoothing/CameraController/Rotation/Camera" instance=ExtResource( 8 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00211835, 0 )
|
|
light_cull_mask = 4294966783
|
|
|
|
[node name="HighSpeedFOV" type="Node" parent="Smoothing/CameraController/Rotation/Camera"]
|
|
script = ExtResource( 11 )
|
|
|
|
[node name="FOVAnimation" type="AnimationPlayer" parent="Smoothing/CameraController/Rotation/Camera/HighSpeedFOV"]
|
|
anims/RESET = SubResource( 8 )
|
|
anims/fov = SubResource( 9 )
|
|
|
|
[node name="WalkieTalkie" parent="Smoothing/CameraController/Rotation/Camera" instance=ExtResource( 14 )]
|
|
|
|
[node name="OnFootPhysics" type="KinematicBody" parent="."]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="OnFootPhysics"]
|
|
transform = Transform( 0.4, 0, 0, 0, 0.440932, 0, 0, 0, 0.4, 0, 0, 0 )
|
|
shape = SubResource( 4 )
|
|
|
|
[node name="Floor" type="RayCast" parent="OnFootPhysics"]
|
|
script = ExtResource( 10 )
|
|
|
|
[node name="ElevatorPhysics" type="Spatial" parent="."]
|
|
script = ExtResource( 7 )
|
|
|
|
[node name="Area" type="Area" parent="ElevatorPhysics"]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="ElevatorPhysics/Area"]
|
|
transform = Transform( 0.325, 0, 0, 0, 0.78, 0, 0, 0, 0.325, 0.0029822, 0.0328078, -0.000828505 )
|
|
shape = SubResource( 5 )
|
|
|
|
[node name="MovementInput" type="Node" parent="."]
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="VerticalTimer" type="Timer" parent="MovementInput"]
|
|
|
|
[node name="HorizontalTimer" type="Timer" parent="MovementInput"]
|
|
|
|
[node name="PlatformMechanics" type="Node" parent="."]
|
|
script = ExtResource( 6 )
|
|
|
|
[node name="MovementSoundsAnimations" type="Node" parent="."]
|
|
script = ExtResource( 19 )
|
|
|
|
[node name="Footsteps" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
|
stream = ExtResource( 17 )
|
|
volume_db = -1.0
|
|
|
|
[node name="Timer" type="Timer" parent="MovementSoundsAnimations/Footsteps"]
|
|
one_shot = true
|
|
|
|
[node name="Jump" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
|
stream = ExtResource( 15 )
|
|
|
|
[node name="JumpLanding" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
|
stream = ExtResource( 15 )
|
|
|
|
[node name="JumpLandingHardCrunch" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
|
stream = ExtResource( 9 )
|
|
|
|
[node name="JumpLandingHardOuch" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
|
stream = ExtResource( 18 )
|
|
|
|
[node name="FallingSound" type="AudioStreamPlayer" parent="MovementSoundsAnimations"]
|
|
stream = ExtResource( 16 )
|
|
|
|
[node name="CameraAnimation" type="AnimationPlayer" parent="MovementSoundsAnimations"]
|
|
anims/RESET = SubResource( 10 )
|
|
anims/jump_landing = SubResource( 11 )
|
|
|
|
[node name="Overlay" type="CanvasLayer" parent="."]
|
|
script = ExtResource( 12 )
|
|
|
|
[node name="HurtScreen" type="TextureRect" parent="Overlay"]
|
|
modulate = Color( 1, 1, 1, 0 )
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
texture = ExtResource( 13 )
|
|
stretch_mode = 1
|
|
|
|
[node name="HurtScreenOpacityAnimation" type="AnimationPlayer" parent="Overlay/HurtScreen"]
|
|
anims/RESET = SubResource( 6 )
|
|
anims/opacity = SubResource( 7 )
|
|
|
|
[node name="PauseScreen" parent="Overlay" instance=ExtResource( 20 )]
|
|
|
|
[connection signal="area_entered" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_entered"]
|
|
[connection signal="area_exited" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_exited"]
|
|
[connection signal="timeout" from="MovementInput/VerticalTimer" to="MovementInput" method="_on_VerticalTimer_timeout"]
|
|
[connection signal="timeout" from="MovementInput/HorizontalTimer" to="MovementInput" method="_on_HorizontalTimer_timeout"]
|