Added underpinnings for advanced screen flash; tweaked default values
for existing screen flash.
This commit is contained in:
parent
20b657c7b1
commit
8679e817ee
5 changed files with 23 additions and 7 deletions
|
|
@ -184,7 +184,7 @@ func _on_win_game(value: int):
|
|||
start_button.show()
|
||||
|
||||
|
||||
func _on_flash_screen(duration: float):
|
||||
func _on_flash_screen(duration: float = .25):
|
||||
print("flash!")
|
||||
$CanvasLayer/ColorRect.visible = true
|
||||
await get_tree().create_timer(duration).timeout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue