diff --git a/scripts/game.gd b/scripts/game.gd index e71c2ec..e5fcf4e 100644 --- a/scripts/game.gd +++ b/scripts/game.gd @@ -49,6 +49,7 @@ var carpreset="normal" # normal, fast # Called when the node enters the scene tree for the first time. func _ready() -> void: + Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN) Gamestate.resetTimeElapsed() map_rounds=Gamestate.getRounds() #load round number from menu diff --git a/scripts/menu.gd b/scripts/menu.gd index 09a3453..39e70ed 100644 --- a/scripts/menu.gd +++ b/scripts/menu.gd @@ -12,6 +12,7 @@ var keyHolddownQueue = {} const KEY_HOLDDOWN_TO_ENTER_TIME=500 #in milliseconds func _ready(): + Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) removeAssignedKeys() Gamestate.removeAllPlayers() $Timer.stop()