Decrease the radius of the player's collision capsule so it won't get stuck on some block configurations.

This commit is contained in:
Relintai 2024-09-20 08:01:26 +02:00
parent a4481c2866
commit 1d56314253
7 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
[gd_resource type="AudioBusLayout" load_steps=2 format=2] [gd_resource type="AudioBusLayout" load_steps=2 format=3]
[sub_resource type="AudioEffectReverb" id=1] [sub_resource type="AudioEffectReverb" id=1]
resource_name = "Reverb" resource_name = "Reverb"

View File

@ -1,4 +1,4 @@
[gd_resource type="Environment3D" load_steps=2 format=2] [gd_resource type="Environment3D" load_steps=2 format=3]
[sub_resource type="ProceduralSky" id=1] [sub_resource type="ProceduralSky" id=1]
sky_top_color = Color( 0.490196, 0.364706, 0.45098, 1 ) sky_top_color = Color( 0.490196, 0.364706, 0.45098, 1 )

View File

@ -1,4 +1,4 @@
[gd_resource type="VoxelLibrarySimple" load_steps=7 format=2] [gd_resource type="VoxelLibrarySimple" load_steps=7 format=3]
[ext_resource path="res://library/liquid_material.tres" type="Material" id=1] [ext_resource path="res://library/liquid_material.tres" type="Material" id=1]
[ext_resource path="res://library/surface_material.tres" type="Material" id=2] [ext_resource path="res://library/surface_material.tres" type="Material" id=2]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2] [gd_scene load_steps=8 format=3]
[ext_resource path="res://player/Player.gd" type="Script" id=1] [ext_resource path="res://player/Player.gd" type="Script" id=1]
[ext_resource path="res://sounds/edited/stepdirt_1.wav" type="AudioStream" id=2] [ext_resource path="res://sounds/edited/stepdirt_1.wav" type="AudioStream" id=2]
@ -8,7 +8,7 @@
[ext_resource path="res://player/ui_theme.tres" type="Theme" id=6] [ext_resource path="res://player/ui_theme.tres" type="Theme" id=6]
[sub_resource type="CapsuleShape" id=1] [sub_resource type="CapsuleShape" id=1]
radius = 0.5 radius = 0.4
height = 1.6 height = 1.6
[node name="Player" type="KinematicBody"] [node name="Player" type="KinematicBody"]
@ -31,7 +31,7 @@ cast_to = Vector3( 0, -0.4, 0 )
[node name="foot" type="AudioStreamPlayer3D" parent="."] [node name="foot" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 2 ) stream = ExtResource( 2 )
bus = "Footsteps" bus = @"Footsteps"
[node name="Menu" type="CenterContainer" parent="."] [node name="Menu" type="CenterContainer" parent="."]
visible = false visible = false

View File

@ -1,4 +1,4 @@
[gd_resource type="Theme" load_steps=8 format=2] [gd_resource type="Theme" load_steps=8 format=3]
[ext_resource path="res://player/button.png" type="Texture" id=1] [ext_resource path="res://player/button.png" type="Texture" id=1]
[ext_resource path="res://player/panel.png" type="Texture" id=2] [ext_resource path="res://player/panel.png" type="Texture" id=2]

View File

@ -27,36 +27,36 @@ window/size/fullscreen=true
move_left={ move_left={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }
move_right={ move_right={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }
move_forward={ move_forward={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }
move_backward={ move_backward={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }
move_sprint={ move_sprint={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }
move_jump={ move_jump={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }
restart={ restart={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"physical_scancode":0,"unicode":0,"echo":false,"action_match_force_exact":false,"script":null)
] ]
} }

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=13 format=2] [gd_scene load_steps=13 format=3]
[ext_resource path="res://scenes/Main.gd" type="Script" id=1] [ext_resource path="res://scenes/Main.gd" type="Script" id=1]
[ext_resource path="res://levels/Level2.tscn" type="PackedScene" id=2] [ext_resource path="res://levels/Level2.tscn" type="PackedScene" id=2]