Balance Changes
This commit is contained in:
parent
a5e2c5cf4b
commit
b2acf9c2f4
2 changed files with 14 additions and 1 deletions
|
@ -38,6 +38,9 @@ func _ready() -> void:
|
||||||
succfail_timer = $SuccessFail
|
succfail_timer = $SuccessFail
|
||||||
success_timer = $Success
|
success_timer = $Success
|
||||||
|
|
||||||
|
get_window().title = "Relaxing Fishing Game 🙂"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(delta: float) -> void:
|
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
|
in_game_timer.wait_time = IN_GAME_WAIT_TIME
|
||||||
success_timer.start()
|
success_timer.start()
|
||||||
$"Yippee!".play()
|
$"Yippee!".play()
|
||||||
|
|
||||||
|
get_window().title = "Yippee!"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _on_start_game_timeout() -> void:
|
func _on_start_game_timeout() -> void:
|
||||||
if randf() < 0.1:
|
if randf() < 0.5:
|
||||||
start_game_timer.stop()
|
start_game_timer.stop()
|
||||||
in_game_timer.start()
|
in_game_timer.start()
|
||||||
|
|
||||||
|
@ -91,6 +97,8 @@ func _on_start_game_timeout() -> void:
|
||||||
|
|
||||||
num_clicks = randi_range(5,21)
|
num_clicks = randi_range(5,21)
|
||||||
#num_clicks = 21
|
#num_clicks = 21
|
||||||
|
|
||||||
|
get_window().title = "MASH MASH MASH MASH MASH"
|
||||||
|
|
||||||
|
|
||||||
# YOU LOSE
|
# YOU LOSE
|
||||||
|
@ -110,6 +118,8 @@ func _on_in_game_timeout() -> void:
|
||||||
in_game_timer.stop()
|
in_game_timer.stop()
|
||||||
succfail_timer.start()
|
succfail_timer.start()
|
||||||
$"Fart".play()
|
$"Fart".play()
|
||||||
|
|
||||||
|
get_window().title = "🙂👎"
|
||||||
|
|
||||||
|
|
||||||
func _on_success_fail_timeout() -> void:
|
func _on_success_fail_timeout() -> void:
|
||||||
|
@ -118,6 +128,8 @@ func _on_success_fail_timeout() -> void:
|
||||||
you.visible = true
|
you.visible = true
|
||||||
succfail_timer.stop()
|
succfail_timer.stop()
|
||||||
start_game_timer.start()
|
start_game_timer.start()
|
||||||
|
|
||||||
|
get_window().title = "Relaxing Fishing Game 🙂"
|
||||||
|
|
||||||
|
|
||||||
func _on_success_timeout() -> void:
|
func _on_success_timeout() -> void:
|
||||||
|
|
|
@ -28,6 +28,7 @@ func _on_start_pressed() -> void:
|
||||||
new_window.size = Vector2i(1280, 720)
|
new_window.size = Vector2i(1280, 720)
|
||||||
new_window.initial_position = Window.WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS
|
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.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 = preload("res://scenes/main.tscn")
|
||||||
var main_scene_instance = main_scene.instantiate()
|
var main_scene_instance = main_scene.instantiate()
|
||||||
new_window.add_child(main_scene_instance)
|
new_window.add_child(main_scene_instance)
|
||||||
|
|
Loading…
Add table
Reference in a new issue