summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/main.gd2
-rw-r--r--scenes/main.tscn40
2 files changed, 22 insertions, 20 deletions
diff --git a/scenes/main.gd b/scenes/main.gd
index 4f1c67f..7025386 100644
--- a/scenes/main.gd
+++ b/scenes/main.gd
@@ -17,7 +17,7 @@ func _process(delta: float) -> void:
if Input.is_action_just_pressed("G"):
$Meow.play()
- $Score.text = "Net worth: \n$%s" % net_worth.toString()
+ #$Score.text = "Net worth: \n$%s" % net_worth.toString()
func _on_microgame_spawn_timer_timeout() -> void:
diff --git a/scenes/main.tscn b/scenes/main.tscn
index a4504b9..98fd364 100644
--- a/scenes/main.tscn
+++ b/scenes/main.tscn
@@ -286,30 +286,12 @@ animations = [{
[node name="Node2D2" type="Node2D"]
script = ExtResource("1_y7a0r")
-[node name="Background" type="Sprite2D" parent="."]
-modulate = Color(0.796078, 0.796078, 0.796078, 1)
-light_mask = 3
-scale = Vector2(1319, 300)
-texture = ExtResource("2_fkfik")
-centered = false
-
[node name="Sprite2D" type="Sprite2D" parent="."]
visible = false
position = Vector2(636.307, 381.672)
scale = Vector2(0.293995, 0.217148)
texture = ExtResource("1_o2s48")
-[node name="Score" type="Label" parent="."]
-offset_top = 2.0
-offset_right = 83.0
-offset_bottom = 25.0
-theme = ExtResource("3_d7ku7")
-theme_override_colors/font_color = Color(0, 0, 0, 1)
-theme_override_font_sizes/font_size = 62
-text = "Net worth:
-
-$00000000000000000000"
-
[node name="Microgame spawn timer" type="Timer" parent="."]
wait_time = 10.0
autostart = true
@@ -325,12 +307,32 @@ size = Vector2i(1280, 720)
[node name="Clippette" parent="." instance=ExtResource("5_6agvn")]
-[node name="Rotating fish" type="AnimatedSprite2D" parent="."]
+[node name="Score window" type="Node2D" parent="."]
+
+[node name="Background" type="Sprite2D" parent="Score window"]
+modulate = Color(0.796078, 0.796078, 0.796078, 1)
+light_mask = 3
+scale = Vector2(1319, 300)
+texture = ExtResource("2_fkfik")
+centered = false
+
+[node name="Rotating fish" type="AnimatedSprite2D" parent="Score window"]
position = Vector2(1060, 149)
sprite_frames = SubResource("SpriteFrames_ke268")
autoplay = "default"
frame_progress = 0.387952
+[node name="Score" type="Label" parent="Score window"]
+offset_top = 2.0
+offset_right = 1302.0
+offset_bottom = 197.0
+theme = ExtResource("3_d7ku7")
+theme_override_colors/font_color = Color(0, 0, 0, 1)
+theme_override_font_sizes/font_size = 62
+text = "Net worth:
+
+$00000000000000000000"
+
[connection signal="timeout" from="Microgame spawn timer" to="." method="_on_microgame_spawn_timer_timeout"]
[connection signal="buy" from="Stock ticker window/Stock ticker" to="." method="_on_stock_ticker_buy"]
[connection signal="sell" from="Stock ticker window/Stock ticker" to="." method="_on_stock_ticker_sell"]