From 3c306f183a2290b076ff0be01d4b1dc1428bffea Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 14 Nov 2025 11:57:22 +0200 Subject: Add initial level system, main menu --- player.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player.gd') diff --git a/player.gd b/player.gd index defd9d8..f2127ac 100644 --- a/player.gd +++ b/player.gd @@ -1,3 +1,4 @@ +class_name Player extends CharacterBody2D @export var speed: float @@ -37,7 +38,7 @@ func _physics_process(delta: float): coyote += 1 var can_jump = coyote < coyote_max - if Input.is_action_just_pressed("jump") and can_jump: + if Input.is_action_pressed("jump") and can_jump: velocity.y = -jump_strength # Force coyote time to expire to forbid double jumps coyote = coyote_max -- cgit v1.3