aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/objs/player.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/objs/player.lua b/src/objs/player.lua
index 4a51eae..0a90fc1 100644
--- a/src/objs/player.lua
+++ b/src/objs/player.lua
@@ -38,7 +38,10 @@ local function player_normal_state_update(player, state, dt)
if player.grounded_timer > 0 then
if player.jump_input_timer > 0 then
+ player.grounded_timer = 0
+ player.jump_input_timer = 0
player.vy = -PLAYER_JUMP_FORCE
+ new_speck_entity(player.x, player.y, "res/speck/test.speck.lua")
end
end
if not is_input_pressed("Jump") and player.vy < -100 then