summaryrefslogtreecommitdiff
path: root/scenes/microgames/ad/ad_window.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/microgames/ad/ad_window.gd')
-rw-r--r--scenes/microgames/ad/ad_window.gd20
1 files changed, 20 insertions, 0 deletions
diff --git a/scenes/microgames/ad/ad_window.gd b/scenes/microgames/ad/ad_window.gd
new file mode 100644
index 0000000..2662642
--- /dev/null
+++ b/scenes/microgames/ad/ad_window.gd
@@ -0,0 +1,20 @@
+extends "res://scenes/microgames/microgame_window.gd"
+
+
+## A simple microgame that you win by closing the window
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready() -> void:
+ pass # Replace with function body.
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta: float) -> void:
+ pass
+
+
+func _on_close_requested() -> void:
+ super()
+ print("Hmm perchance")
+ win.emit(self)