made some jingles :)))

This commit is contained in:
pennyrigate 2024-02-26 21:56:33 -05:00
parent bf4c85fe44
commit dbd2d47202
16 changed files with 145 additions and 8 deletions

View file

@ -1,8 +1,10 @@
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")
const penny_voice = preload("res://audio/sounds/revolution2083_penny.ogg")
const haze_voice = preload("res://audio/sounds/revolution2083_haze.ogg")
const ivy_voice = preload("res://audio/sounds/revolution2083_ivy.ogg")
const dog_voice = preload("res://audio/sounds/revolution2083_dog.ogg")
onready var audio = $AudioStreamPlayer
export var next_menu: PackedScene
var has_started = false
@ -15,8 +17,10 @@ func _input(event):
if Input.is_action_just_pressed("start") && !has_started:
Audio.play_sound(Audio.a_star,Audio.ac_collectible)
var r = randi() % 101
if r % 2 == 0: audio.stream = penny_voice
if r % 2 == 1: audio.stream = haze_voice
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")