Minor changes

This commit is contained in:
Eduard Urbach 2024-02-07 15:33:20 +01:00
parent fba99ed432
commit fb3a55889f
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 6 additions and 5 deletions

View File

@ -3,7 +3,7 @@ extends Controller
var move: Vector2
func _unhandled_input(_event):
func _unhandled_input(event):
if Global.interacting_with_ui:
return
@ -12,11 +12,11 @@ func _unhandled_input(_event):
character.direction.y = 0
character.direction = character.direction.normalized()
if Input.is_action_just_pressed("jump"):
if event.is_action_pressed("jump"):
character.jump()
if Input.is_action_just_pressed("dash"):
if event.is_action_pressed("dash"):
character.dash()
if Input.is_action_just_pressed("attack"):
if event.is_action_pressed("attack"):
character.attack()

View File

@ -27,7 +27,8 @@ gdscript/warnings/integer_division=0
window/size/viewport_width=1920
window/size/viewport_height=1080
window/size/mode=3
window/size/window_width_override=960
window/size/window_height_override=540
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
window/vsync/vsync_mode=0