title screen and ending
This commit is contained in:
parent
2d463c0243
commit
edc2eecd3a
6 changed files with 75 additions and 20 deletions
|
@ -16,15 +16,10 @@ onready var revolution_2083_ivy = preload("res://audio/sounds/revolution2083_ivy
|
|||
func _input(event):
|
||||
if Input.is_action_just_pressed("start") && !has_started:
|
||||
Audio.play_sound(Audio.a_star,Audio.ac_collectible)
|
||||
var r = 40
|
||||
if r > 0 && r < 31: audio.stream = penny_voice
|
||||
if r >= 30 && r < 61: audio.stream = haze_voice
|
||||
if r >= 60 && r < 91: audio.stream = ivy_voice
|
||||
if r >= 90: audio.stream = dog_voice
|
||||
if r == 0: audio.stream = robo_voice
|
||||
audio.play()
|
||||
$AnimationPlayer.play("activate")
|
||||
has_started = true
|
||||
yield(get_tree().create_timer(0.5), "timeout")
|
||||
Game.change_map(next_menu)
|
||||
|
||||
func _ready():
|
||||
Fade.fade_in(Options.transition_speed_secs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue