Skip to content

Commit

Permalink
~61 add bgm
Browse files Browse the repository at this point in the history
import vampire survivors bgm
  • Loading branch information
sh-cho committed Jun 8, 2024
1 parent c9ce939 commit 68a3065
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
Binary file added assets/audio/bgm.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions assets/audio/bgm.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://cdii4krepunmg"
path="res://.godot/imported/bgm.mp3-7454ebd4ce825ddccfe53defc5fe514b.mp3str"

[deps]

source_file="res://assets/audio/bgm.mp3"
dest_files=["res://.godot/imported/bgm.mp3-7454ebd4ce825ddccfe53defc5fe514b.mp3str"]

[params]

loop=true
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
1 change: 1 addition & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config/icon="res://icon.svg"
[autoload]

GameEvents="*res://scenes/autoload/game_events.tscn"
MusicPlayer="*res://scenes/autoload/music_player.tscn"

[debug]

Expand Down
10 changes: 10 additions & 0 deletions scenes/autoload/music_player.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://c1hs834u8r8bm"]

[ext_resource type="AudioStream" uid="uid://cdii4krepunmg" path="res://assets/audio/bgm.mp3" id="1_ggdwu"]

[node name="MusicPlayer" type="AudioStreamPlayer"]
process_mode = 3
stream = ExtResource("1_ggdwu")
volume_db = -8.0
autoplay = true
bus = &"music"

0 comments on commit 68a3065

Please sign in to comment.