hide mouse in game
This commit is contained in:
parent
9d7dee7404
commit
ad18cab2ad
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue