summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scenes/microgames/fishin/fishin.gd14
-rw-r--r--scenes/title.gd1
2 files changed, 14 insertions, 1 deletions
diff --git a/scenes/microgames/fishin/fishin.gd b/scenes/microgames/fishin/fishin.gd
index 3a7a704..d556b75 100644
--- a/scenes/microgames/fishin/fishin.gd
+++ b/scenes/microgames/fishin/fishin.gd
@@ -38,6 +38,9 @@ func _ready() -> void:
succfail_timer = $SuccessFail
success_timer = $Success
+ get_window().title = "Relaxing Fishing Game 🙂"
+
+
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
@@ -70,10 +73,13 @@ func _on_texture_button_button_up() -> void:
in_game_timer.wait_time = IN_GAME_WAIT_TIME
success_timer.start()
$"Yippee!".play()
+
+ get_window().title = "Yippee!"
+
func _on_start_game_timeout() -> void:
- if randf() < 0.1:
+ if randf() < 0.5:
start_game_timer.stop()
in_game_timer.start()
@@ -91,6 +97,8 @@ func _on_start_game_timeout() -> void:
num_clicks = randi_range(5,21)
#num_clicks = 21
+
+ get_window().title = "MASH MASH MASH MASH MASH"
# YOU LOSE
@@ -110,6 +118,8 @@ func _on_in_game_timeout() -> void:
in_game_timer.stop()
succfail_timer.start()
$"Fart".play()
+
+ get_window().title = "🙂👎"
func _on_success_fail_timeout() -> void:
@@ -118,6 +128,8 @@ func _on_success_fail_timeout() -> void:
you.visible = true
succfail_timer.stop()
start_game_timer.start()
+
+ get_window().title = "Relaxing Fishing Game 🙂"
func _on_success_timeout() -> void:
diff --git a/scenes/title.gd b/scenes/title.gd
index 7209e85..d5c2159 100644
--- a/scenes/title.gd
+++ b/scenes/title.gd
@@ -28,6 +28,7 @@ func _on_start_pressed() -> void:
new_window.size = Vector2i(1280, 720)
new_window.initial_position = Window.WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS
#new_window.canvas_item_default_texture_filter = Viewport.DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST
+ new_window.unresizable = true
var main_scene = preload("res://scenes/main.tscn")
var main_scene_instance = main_scene.instantiate()
new_window.add_child(main_scene_instance)