meat_madness_redux/godot/player/player.tscn

105 lines
4.3 KiB
Plaintext

[gd_scene load_steps=18 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://effects/player/MovementSounds.tscn" type="PackedScene" 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]
[sub_resource type="AnimationNodeStateMachine" id=2]
[sub_resource type="AnimationNodeStateMachinePlayback" id=3]
[sub_resource type="CylinderShape" id=4]
[sub_resource type="SphereShape" id=5]
[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="CameraAnimationFSM" type="AnimationTree" parent="Smoothing/CameraController/Rotation/Camera"]
tree_root = SubResource( 2 )
anim_player = NodePath("../CameraAnimationPlayer")
parameters/playback = SubResource( 3 )
[node name="CameraAnimationPlayer" type="AnimationPlayer" parent="Smoothing/CameraController/Rotation/Camera"]
root_node = NodePath("../CameraAnimationFSM")
[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 )
[node name="HighSpeedFOV" type="Node" parent="Smoothing/CameraController/Rotation/Camera"]
script = ExtResource( 11 )
[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="MovementSounds" parent="." instance=ExtResource( 9 )]
[node name="Overlay" type="CanvasLayer" parent="."]
script = ExtResource( 12 )
[node name="HurtScreen" type="TextureRect" parent="Overlay"]
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 13 )
stretch_mode = 1
[node name="Timer" type="Timer" parent="Overlay/HurtScreen"]
one_shot = true
[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"]
[connection signal="timeout" from="Overlay/HurtScreen/Timer" to="Overlay" method="_on_Timer_timeout"]