summaryrefslogtreecommitdiff
path: root/scenes/levels/base_level.gd
diff options
context:
space:
mode:
authorJonas Bernard <public.jbernard@web.de>2021-04-25 00:39:49 +0200
committerJonas Bernard <public.jbernard@web.de>2021-04-25 00:39:49 +0200
commit66a83b84af05256c468f4cc47545ce592a9353fc (patch)
treeb689ddd46ebe95eed9d0ed2bc14cfebbad19d867 /scenes/levels/base_level.gd
parent7d3d98f6b6546d8ddcd7a2a4c8e9431c59880223 (diff)
downloadldjam48-66a83b84af05256c468f4cc47545ce592a9353fc.tar.gz
ldjam48-66a83b84af05256c468f4cc47545ce592a9353fc.tar.bz2
ldjam48-66a83b84af05256c468f4cc47545ce592a9353fc.zip
pause
Diffstat (limited to 'scenes/levels/base_level.gd')
-rw-r--r--scenes/levels/base_level.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd
new file mode 100644
index 0000000..7eaf734
--- /dev/null
+++ b/scenes/levels/base_level.gd
@@ -0,0 +1,16 @@
+extends Node2D
+
+onready var pause_menu = $PauseMenu
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+#func _process(delta):
+# pass
+
+func _on_MenuButton_on_click():
+ pause_menu.visible = true
+ pause_menu.pause()