summaryrefslogtreecommitdiff
path: root/scenes/main.gd
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-16 20:45:46 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-16 20:45:46 -0600
commit05edc5e0909db8b4d48c971c8b2680a71997bb1f (patch)
tree075014d60924feabc143bb1f01e13f2e29bb7515 /scenes/main.gd
parent73f8e11d939ffbffbc7e7fc96673d09f28c90647 (diff)
parent68459cebbc082aef2cab614608cd605e7cf54b5f (diff)
Merge branch 'main-window'
Diffstat (limited to 'scenes/main.gd')
-rw-r--r--scenes/main.gd25
1 files changed, 10 insertions, 15 deletions
diff --git a/scenes/main.gd b/scenes/main.gd
index 4f1c67f..7ab90d5 100644
--- a/scenes/main.gd
+++ b/scenes/main.gd
@@ -1,23 +1,15 @@
extends Node2D
-var net_worth: Big
-
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
- _on_microgame_spawn_timer_timeout()
- net_worth = Big.new(1000)
+ pass
- var window = get_window()
- window.position = Vector2(450, 360)
- window.size = Vector2(1319, 300)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
# The most important functionality
if Input.is_action_just_pressed("G"):
$Meow.play()
-
- $Score.text = "Net worth: \n$%s" % net_worth.toString()
func _on_microgame_spawn_timer_timeout() -> void:
@@ -26,6 +18,9 @@ func _on_microgame_spawn_timer_timeout() -> void:
# Spawn a microgame window
var window_scene = preload("res://scenes/microgames/ad/ad_window.tscn")
var window_instance = window_scene.instantiate()
+
+ print(type_string(typeof(window_instance)))
+
add_child(window_instance)
# Randomize window position
@@ -42,9 +37,9 @@ func _on_microgame_win(window: MicrogameWindow):
print("yay")
-func _on_stock_ticker_buy(amount: Variant) -> void:
- net_worth = net_worth.minus(amount)
-
-
-func _on_stock_ticker_sell(amount: Variant) -> void:
- net_worth = net_worth.plus(amount)
+func _on_fishin_win() -> void:
+ $Fishin.visible = false
+ $"Stock ticker".start()
+ $"Microgame spawn timer".start()
+ $Clippette.visible = true
+ $"Score window (real)".visible = true