From 1d56314253ef3372674e650be0d0a2aefc8659c0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 20 Sep 2024 08:01:26 +0200 Subject: [PATCH] Decrease the radius of the player's collision capsule so it won't get stuck on some block configurations. --- game/default_bus_layout.tres | 2 +- game/environments/red_env.tres | 2 +- game/library/MainLibrary.tres | 2 +- game/player/Player.tscn | 6 +++--- game/player/ui_theme.tres | 2 +- game/project.pandemonium | 14 +++++++------- game/scenes/Main.tscn | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/game/default_bus_layout.tres b/game/default_bus_layout.tres index ed44a2e..fe1781a 100644 --- a/game/default_bus_layout.tres +++ b/game/default_bus_layout.tres @@ -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] resource_name = "Reverb" diff --git a/game/environments/red_env.tres b/game/environments/red_env.tres index a1087a4..4a1f851 100644 --- a/game/environments/red_env.tres +++ b/game/environments/red_env.tres @@ -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] sky_top_color = Color( 0.490196, 0.364706, 0.45098, 1 ) diff --git a/game/library/MainLibrary.tres b/game/library/MainLibrary.tres index 802f6cc..ec1b8a1 100644 --- a/game/library/MainLibrary.tres +++ b/game/library/MainLibrary.tres @@ -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/surface_material.tres" type="Material" id=2] diff --git a/game/player/Player.tscn b/game/player/Player.tscn index 692de35..d774e83 100644 --- a/game/player/Player.tscn +++ b/game/player/Player.tscn @@ -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://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] [sub_resource type="CapsuleShape" id=1] -radius = 0.5 +radius = 0.4 height = 1.6 [node name="Player" type="KinematicBody"] @@ -31,7 +31,7 @@ cast_to = Vector3( 0, -0.4, 0 ) [node name="foot" type="AudioStreamPlayer3D" parent="."] stream = ExtResource( 2 ) -bus = "Footsteps" +bus = @"Footsteps" [node name="Menu" type="CenterContainer" parent="."] visible = false diff --git a/game/player/ui_theme.tres b/game/player/ui_theme.tres index 5ad62d5..9f5f9bc 100644 --- a/game/player/ui_theme.tres +++ b/game/player/ui_theme.tres @@ -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/panel.png" type="Texture" id=2] diff --git a/game/project.pandemonium b/game/project.pandemonium index 33e7fbc..745c872 100644 --- a/game/project.pandemonium +++ b/game/project.pandemonium @@ -27,36 +27,36 @@ window/size/fullscreen=true move_left={ "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={ "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={ "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={ "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={ "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={ "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={ "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) ] } diff --git a/game/scenes/Main.tscn b/game/scenes/Main.tscn index 40f1275..e57102d 100644 --- a/game/scenes/Main.tscn +++ b/game/scenes/Main.tscn @@ -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://levels/Level2.tscn" type="PackedScene" id=2]