Minor changes
This commit is contained in:
parent
fba99ed432
commit
fb3a55889f
@ -3,7 +3,7 @@ extends Controller
|
|||||||
|
|
||||||
var move: Vector2
|
var move: Vector2
|
||||||
|
|
||||||
func _unhandled_input(_event):
|
func _unhandled_input(event):
|
||||||
if Global.interacting_with_ui:
|
if Global.interacting_with_ui:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -12,11 +12,11 @@ func _unhandled_input(_event):
|
|||||||
character.direction.y = 0
|
character.direction.y = 0
|
||||||
character.direction = character.direction.normalized()
|
character.direction = character.direction.normalized()
|
||||||
|
|
||||||
if Input.is_action_just_pressed("jump"):
|
if event.is_action_pressed("jump"):
|
||||||
character.jump()
|
character.jump()
|
||||||
|
|
||||||
if Input.is_action_just_pressed("dash"):
|
if event.is_action_pressed("dash"):
|
||||||
character.dash()
|
character.dash()
|
||||||
|
|
||||||
if Input.is_action_just_pressed("attack"):
|
if event.is_action_pressed("attack"):
|
||||||
character.attack()
|
character.attack()
|
||||||
|
@ -27,7 +27,8 @@ gdscript/warnings/integer_division=0
|
|||||||
|
|
||||||
window/size/viewport_width=1920
|
window/size/viewport_width=1920
|
||||||
window/size/viewport_height=1080
|
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/mode="canvas_items"
|
||||||
window/stretch/aspect="expand"
|
window/stretch/aspect="expand"
|
||||||
window/vsync/vsync_mode=0
|
window/vsync/vsync_mode=0
|
||||||
|
Loading…
Reference in New Issue
Block a user