From c23ad7a0cb69b491edae1e50e6709516b0e75e41 Mon Sep 17 00:00:00 2001 From: Luna Brovchuk Date: Sat, 30 Sep 2023 19:53:37 +0200 Subject: [PATCH] Fix the repo lol. --- src/models/player/player.gd | 4 ++-- src/scenes/menu/menu.gd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)