- adding coins
- performance improvements - shake effect - keyboard support
This commit is contained in:
parent
78b4a3bba2
commit
45193fc27f
48 changed files with 609 additions and 74 deletions
|
@ -15,6 +15,7 @@ func _on_duck_gameover() -> void:
|
|||
$"../../Audio/GameOver".play()
|
||||
$"../../Audio/Gui-in".play()
|
||||
show()
|
||||
$Restart.grab_focus()
|
||||
print($"/root/Global".hiscore)
|
||||
if %ScoreContainer.get_score() > $"/root/Global".hiscore:
|
||||
$"/root/Global".write_save()
|
||||
|
|
|
@ -3,6 +3,7 @@ extends TextureRect
|
|||
var audio_bus_music = 1
|
||||
var audio_bus_sounds = 2
|
||||
var sound_button_on_of = {true:preload("res://assets/GUI/sound button.png"),false:preload("res://assets/GUI/sound button off.png")}
|
||||
var sound_button_on_of_f = {true:preload("res://assets/GUI/buttons fucused/sound button f.png"),false:preload("res://assets/GUI/buttons fucused/sound button off f.png")}
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
@ -18,6 +19,7 @@ func open():
|
|||
show()
|
||||
$AnimationPlayer.play_backwards("out-in")
|
||||
$"../../Audio/Gui-in".play()
|
||||
$BackButton.grab_focus()
|
||||
|
||||
func _on_back_pressed() -> void:
|
||||
$AnimationPlayer.play("out-in")
|
||||
|
@ -34,4 +36,5 @@ func _volume_slider_changed(value: float) -> void:
|
|||
|
||||
func _on_sound_button_toggled(toggled_on: bool) -> void:
|
||||
$SoundToggleButton.texture_normal = sound_button_on_of[AudioServer.is_bus_mute(audio_bus_sounds)]
|
||||
$SoundToggleButton.texture_focused = sound_button_on_of_f[AudioServer.is_bus_mute(audio_bus_sounds)]
|
||||
AudioServer.set_bus_mute(audio_bus_sounds,not AudioServer.is_bus_mute(audio_bus_sounds))
|
||||
|
|
|
@ -6,6 +6,7 @@ func _ready() -> void:
|
|||
$AnimationPlayer.play_backwards("out-in")
|
||||
$"../../Audio/Gui-in".play()
|
||||
show()
|
||||
$Start.grab_focus()
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
$Logo.global_position.x = -5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue