diff --git a/src/models/player/player.gd b/src/models/player/player.gd index 0fc2b9e..b990357 100644 --- a/src/models/player/player.gd +++ b/src/models/player/player.gd @@ -7,6 +7,6 @@ func get_input(): var input_direction = Input.get_vector("left", "right", "up", "down") velocity = input_direction * speed -func _physics_process(delta): +func _physics_process(_delta): get_input() - move_and_slide(velocity) + velocity = move_and_slide(velocity) diff --git a/src/scenes/menu/menu.gd b/src/scenes/menu/menu.gd index e2139dc..6ea9112 100644 --- a/src/scenes/menu/menu.gd +++ b/src/scenes/menu/menu.gd @@ -1,7 +1,7 @@ extends Node func game_start(): - get_tree().change_scene_to(Global.game_scene) + get_tree().change_scene_to(Global.GAME_SCENE) func game_exit(): get_tree().quit(0)