diff options
Diffstat (limited to 'scenes/main.gd')
-rw-r--r-- | scenes/main.gd | 7 |
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 + |