penny and haze title screen
This commit is contained in:
parent
61e685876c
commit
d64e0c3ea5
6 changed files with 41 additions and 4 deletions
BIN
audio/sounds/revo83haze.ogg
Normal file
BIN
audio/sounds/revo83haze.ogg
Normal file
Binary file not shown.
15
audio/sounds/revo83haze.ogg.import
Normal file
15
audio/sounds/revo83haze.ogg.import
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="ogg_vorbis"
|
||||||
|
type="AudioStreamOGGVorbis"
|
||||||
|
path="res://.import/revo83haze.ogg-1cf485529c66b9ff34f0e10dd1ce5d91.oggstr"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://audio/sounds/revo83haze.ogg"
|
||||||
|
dest_files=[ "res://.import/revo83haze.ogg-1cf485529c66b9ff34f0e10dd1ce5d91.oggstr" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
BIN
audio/sounds/revo83penny.ogg
Normal file
BIN
audio/sounds/revo83penny.ogg
Normal file
Binary file not shown.
15
audio/sounds/revo83penny.ogg.import
Normal file
15
audio/sounds/revo83penny.ogg.import
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="ogg_vorbis"
|
||||||
|
type="AudioStreamOGGVorbis"
|
||||||
|
path="res://.import/revo83penny.ogg-7bf73d02017da5795744a50fb3733d1e.oggstr"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://audio/sounds/revo83penny.ogg"
|
||||||
|
dest_files=[ "res://.import/revo83penny.ogg-7bf73d02017da5795744a50fb3733d1e.oggstr" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
|
@ -1,11 +1,19 @@
|
||||||
extends Node
|
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
|
export var next_menu: PackedScene
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
if Input.is_action_just_pressed("start"):
|
if Input.is_action_just_pressed("start"):
|
||||||
Audio.play_sound(Audio.a_star,Audio.ac_collectible)
|
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")
|
$AnimationPlayer.play("activate")
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=22 format=2]
|
[gd_scene load_steps=21 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=1]
|
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=1]
|
||||||
[ext_resource path="res://cutscenes/intro_story.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://cutscenes/intro_story.tscn" type="PackedScene" id=2]
|
||||||
|
@ -12,7 +12,6 @@
|
||||||
[ext_resource path="res://shaders/color_noise.gdshader" type="Shader" id=11]
|
[ext_resource path="res://shaders/color_noise.gdshader" type="Shader" id=11]
|
||||||
[ext_resource path="res://graphics/backgrounds/moon.png" type="Texture" id=12]
|
[ext_resource path="res://graphics/backgrounds/moon.png" type="Texture" id=12]
|
||||||
[ext_resource path="res://graphics/hud/title_credits.png" type="Texture" id=13]
|
[ext_resource path="res://graphics/hud/title_credits.png" type="Texture" id=13]
|
||||||
[ext_resource path="res://audio/sounds/revolution2083.ogg" type="AudioStream" id=14]
|
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id=7]
|
[sub_resource type="ShaderMaterial" id=7]
|
||||||
shader = ExtResource( 8 )
|
shader = ExtResource( 8 )
|
||||||
|
@ -205,6 +204,6 @@ anims/activate = SubResource( 10 )
|
||||||
anims/blink = SubResource( 6 )
|
anims/blink = SubResource( 6 )
|
||||||
|
|
||||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
stream = ExtResource( 14 )
|
volume_db = -7.866
|
||||||
|
|
||||||
[connection signal="finished" from="AudioStreamPlayer" to="." method="_on_AudioStreamPlayer_finished"]
|
[connection signal="finished" from="AudioStreamPlayer" to="." method="_on_AudioStreamPlayer_finished"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue