gmtk24/scenes/player.tscn

48 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2024-08-19 17:19:03 +02:00
[gd_scene load_steps=5 format=3 uid="uid://wjbuh7jk50nm"]
2024-08-18 17:31:52 +02:00
[ext_resource type="Script" path="res://scripts/Player.cs" id="1_aff2a"]
2024-08-19 17:19:03 +02:00
[ext_resource type="AudioStream" uid="uid://nkhen28d4xfu" path="res://sounds/163609__leandrosntounis__wind-strong-through-rocks-1.ogg" id="2_ab4w4"]
[ext_resource type="AudioStream" uid="uid://5qnq5lp6qxps" path="res://sounds/footsteps.tres" id="3_op70v"]
2024-08-18 17:31:52 +02:00
[sub_resource type="CylinderShape3D" id="CylinderShape3D_rgktv"]
height = 1.9
radius = 0.3
2024-08-19 22:27:26 +02:00
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("Eye", "LookingAt", "HeightBasedWindPlayer", "FootstepPlayer")]
2024-08-19 21:19:37 +02:00
floor_block_on_wall = false
floor_snap_length = 0.25
2024-08-18 17:31:52 +02:00
script = ExtResource("1_aff2a")
2024-08-19 17:19:03 +02:00
MovementSpeed = 4.0
2024-08-19 20:35:43 +02:00
JumpVelocity = 6.0
2024-08-19 17:19:03 +02:00
Gravity = 13.0
2024-08-18 17:31:52 +02:00
Eye = NodePath("PlayerEyeCamera")
2024-08-19 22:27:26 +02:00
LookingAt = NodePath("PlayerEyeCamera/LookAt")
2024-08-19 17:19:03 +02:00
HeightBasedWindPlayer = NodePath("HeightBasedWindFx")
MinVolumeWindHeight = -5.0
MaxVolumeWindHeight = 20.0
FootstepPlayer = NodePath("FootstepFx")
FootstepNoiseInterval = 2.0
2024-08-18 17:31:52 +02:00
[node name="PlayerEyeCamera" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0)
2024-08-19 17:19:03 +02:00
[node name="Ears" type="AudioListener3D" parent="PlayerEyeCamera"]
current = true
2024-08-19 22:27:26 +02:00
[node name="LookAt" type="RayCast3D" parent="PlayerEyeCamera"]
target_position = Vector3(0, 0, -4)
collision_mask = 4
debug_shape_custom_color = Color(1, 1, 1, 1)
debug_shape_thickness = 5
2024-08-18 17:31:52 +02:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.95, 0)
shape = SubResource("CylinderShape3D_rgktv")
2024-08-18 20:06:11 +02:00
2024-08-19 17:19:03 +02:00
[node name="HeightBasedWindFx" type="AudioStreamPlayer" parent="."]
process_mode = 3
stream = ExtResource("2_ab4w4")
[node name="FootstepFx" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_op70v")