From 7115379ccf5714816eeb91fc16d3a63e019c8082 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 14 Feb 2021 14:53:17 +0100 Subject: Adds user configurable key bindings --- Global.gd | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Global.gd') diff --git a/Global.gd b/Global.gd index c07d1e1..9f60d2c 100644 --- a/Global.gd +++ b/Global.gd @@ -169,3 +169,9 @@ func check_win_timer(): if has_won: emit_signal("game_won", Network.player) + + +func open_menu(): + var Menu = load("res://UI/Menu/Menu.tscn").instance() + get_tree().paused = true + get_tree().current_scene.add_child(Menu) -- cgit v1.2.3