summaryrefslogtreecommitdiff
path: root/scenes/main.gd
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-15 19:53:02 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-15 19:53:02 -0600
commit56377b3afac7d5809738c6016981c5153a20f2b3 (patch)
treef160b73658f0d2cb722e554fe10d45949257c8e3 /scenes/main.gd
parentb62bbaac0dd22ba130832292f9248de2e9aa4662 (diff)
Make derived window class for the ad microgame
Diffstat (limited to 'scenes/main.gd')
-rw-r--r--scenes/main.gd7
1 files changed, 5 insertions, 2 deletions
diff --git a/scenes/main.gd b/scenes/main.gd
index 5214f25..ffad7e5 100644
--- a/scenes/main.gd
+++ b/scenes/main.gd
@@ -3,7 +3,7 @@ extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
- pass # Replace with function body.
+ _on_microgame_spawn_timer_timeout()
# Called every frame. 'delta' is the elapsed time since the previous frame.
@@ -15,7 +15,7 @@ func _on_microgame_spawn_timer_timeout() -> void:
print("WAAAHAHAHA MICROGAMES")
# Spawn a microgame window
- var window_scene = preload("res://scenes/microgames/microgame_window.tscn")
+ var window_scene = preload("res://scenes/microgames/ad_window.tscn")
var window_instance = window_scene.instantiate()
add_child(window_instance)
var microgame_scene = preload("res://scenes/microgames/window_mvp.tscn")
@@ -27,3 +27,6 @@ func _on_microgame_spawn_timer_timeout() -> void:
var window_x = randi_range(0, screen_size.x - window_instance.size.x)
var window_y = randi_range(0, screen_size.y - window_instance.size.y)
window_instance.position = Vector2(window_x, window_y)
+
+ # Connect signals
+