From fb3a55889fdf0133e5a7c61780acc1c846c36f73 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 7 Feb 2024 15:33:20 +0100 Subject: [PATCH] Minor changes --- client/player/controller/PlayerController.gd | 8 ++++---- client/project.godot | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/player/controller/PlayerController.gd b/client/player/controller/PlayerController.gd index 93cf924..c5c30c6 100644 --- a/client/player/controller/PlayerController.gd +++ b/client/player/controller/PlayerController.gd @@ -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() diff --git a/client/project.godot b/client/project.godot index 02faba6..83d0f2f 100644 --- a/client/project.godot +++ b/client/project.godot @@ -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