Wire up sfx, Sega Master System palette for win/end screen, add start screen
This commit is contained in:
parent
2f1437050a
commit
710ae4268f
13 changed files with 161 additions and 40 deletions
|
|
@ -40,14 +40,16 @@ func _on_game_lost(_reason: String):
|
|||
_run_intro_sequence()
|
||||
|
||||
func _apply_loss_palette():
|
||||
var border := Color(1, 0.3, 0.3, 1)
|
||||
var subtle := Color(0.95, 0.7, 0.7, 1)
|
||||
var headline := Color(0.949, 0.227, 0.541, 1)
|
||||
var body := Color(0.851, 0.541, 0.659, 1)
|
||||
var hint := Color(0.941, 0.761, 0.831, 1)
|
||||
|
||||
$Dim.color = Color(0.18, 0.05, 0.05, 1)
|
||||
$Dim.color = Color(0.078, 0.031, 0.18, 1)
|
||||
|
||||
$Center/Card/Margin/Column/Headline.add_theme_color_override("font_color", border)
|
||||
$Center/Card/Margin/Column/ScoreLabel.add_theme_color_override("font_color", subtle)
|
||||
$Center/Card/Margin/Column/SavedLabel.add_theme_color_override("font_color", subtle)
|
||||
$Center/Card/Margin/Column/Headline.add_theme_color_override("font_color", headline)
|
||||
$Center/Card/Margin/Column/ScoreLabel.add_theme_color_override("font_color", body)
|
||||
$Center/Card/Margin/Column/SavedLabel.add_theme_color_override("font_color", body)
|
||||
$Center/Card/Margin/Column/SpaceHint.add_theme_color_override("font_color", hint)
|
||||
|
||||
func _run_intro_sequence() -> void:
|
||||
$Center/Card/Margin/Column/ScoreLabel.text = Strings.END_SCORE_FMT % _score
|
||||
|
|
@ -81,5 +83,9 @@ func _run_intro_sequence() -> void:
|
|||
|
||||
_ready_for_input = true
|
||||
|
||||
var flash_tween := create_tween().set_loops()
|
||||
flash_tween.tween_property($Center/Card/Margin/Column/SpaceHint, "modulate:a", 0.2, 0.6).set_trans(Tween.TRANS_SINE)
|
||||
flash_tween.tween_property($Center/Card/Margin/Column/SpaceHint, "modulate:a", 1.0, 0.6).set_trans(Tween.TRANS_SINE)
|
||||
|
||||
func _on_restart_pressed():
|
||||
get_tree().reload_current_scene()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue