Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Scenes/Game Scenes/Spawn.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=18 format=4 uid="uid://co62uqlkvifpg"]
[gd_scene load_steps=18 format=4 uid="uid://bab8q3lwp3q54"]

[ext_resource type="Script" uid="uid://mtv4jj62dn53" path="res://Scripts/player.gd" id="1_t5m8g"]
[ext_resource type="PackedScene" uid="uid://cixx5dbanxem1" path="res://Scenes/Scene Assets/blastershot.tscn" id="2_rxqr3"]
Expand Down
5 changes: 3 additions & 2 deletions Scripts/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,10 @@ func _physics_process(delta: float) -> void:
velocity.x = sign(velocity.x) * SLIDE_SPEED # Keep constant speed during slide
if slide_timer <= 0:
#FRICTION_GROUND = 0.5
set_player_velocity_with_ground_friction()
#set_player_velocity_with_ground_friction()
is_sliding = false
velocity.x = sign(direction_vector) * MOVE_SPEED
print("speed reset")


if is_on_floor():
Expand Down Expand Up @@ -296,7 +298,6 @@ func jump() -> void:

func _on_coyote_timer_timeout() -> void:
jump_available = false
velocity.y += GRAVITY

func cut_jump_short () -> void:
velocity.y += timer.time_left * JUMP_CUT_MULTIPLIER
Expand Down