Added titlescreen bgm

This commit is contained in:
Paul Norberger
2020-04-19 19:55:42 +02:00
parent 0fc4fbeab6
commit ee0c91b3d1
6 changed files with 20 additions and 0 deletions

Binary file not shown.

View File

@@ -6,6 +6,10 @@ onready var animation_player = $AnimationPlayer
func _ready():
animation_player.play("__INIT__")
SoundControler.pub_play_music("res://Menus/TitleScreen/title_screen_bgm.ogg", false)
func _exit_tree():
SoundControler.pub_stop_music()
func _on_Startup_startup_finished():
new_game_button.ignore_once = true # Pauls russian solution for ignoring the first sound click in the titlescreen

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,15 @@
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/title_screen_bgm.ogg-87b08396ab61fe74716877f53eea7d6d.oggstr"
[deps]
source_file="res://Menus/TitleScreen/title_screen_bgm.ogg"
dest_files=[ "res://.import/title_screen_bgm.ogg-87b08396ab61fe74716877f53eea7d6d.oggstr" ]
[params]
loop=false
loop_offset=0

View File

@@ -121,6 +121,7 @@ position = Vector2( -107.855, 73.4821 )
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
position = Vector2( 96, -69.5179 )
scale = Vector2( 2, 2 )
debug = true
FRICTION = 200
[node name="Bonfire" parent="YSort" instance=ExtResource( 7 )]