penny and haze title screen
This commit is contained in:
parent
983245368d
commit
460e783c99
6 changed files with 41 additions and 4 deletions
|
@ -1,11 +1,19 @@
|
|||
extends Node
|
||||
|
||||
const robo_voice = preload("res://audio/sounds/revolution2083.ogg")
|
||||
const penny_voice = preload("res://audio/sounds/revo83penny.ogg")
|
||||
const haze_voice = preload("res://audio/sounds/revo83haze.ogg")
|
||||
onready var audio = $AudioStreamPlayer
|
||||
export var next_menu: PackedScene
|
||||
|
||||
func _input(event):
|
||||
if Input.is_action_just_pressed("start"):
|
||||
Audio.play_sound(Audio.a_star,Audio.ac_collectible)
|
||||
$AudioStreamPlayer.play()
|
||||
var r = randi() % 101
|
||||
if r % 2 == 0: audio.stream = penny_voice
|
||||
if r % 2 == 1: audio.stream = haze_voice
|
||||
if r == 0: audio.stream = robo_voice
|
||||
audio.play()
|
||||
$AnimationPlayer.play("activate")
|
||||
|
||||
func _ready():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue