hide mouse in game

This commit is contained in:
interfisch 2025-05-24 13:08:25 +02:00
parent 9d7dee7404
commit ad18cab2ad
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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()