royalty free music
This commit is contained in:
parent
9e987155d0
commit
5d15de631a
5 changed files with 33 additions and 1 deletions
7
music_player.tscn
Normal file
7
music_player.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene format=3 uid="uid://brfvu7b2fdm0i"]
|
||||
|
||||
[ext_resource type="AudioStream" uid="uid://3c4uog8d4ahi" path="res://replace-me.mp3" id="1_fvyft"]
|
||||
|
||||
[node name="MusicPlayer" type="AudioStreamPlayer" unique_id=1544811864]
|
||||
stream = ExtResource("1_fvyft")
|
||||
autoplay = true
|
||||
|
|
@ -182,6 +182,7 @@ func _process(delta: float) -> void:
|
|||
func damage(damager: Node3D) -> void:
|
||||
if health <= 0: return
|
||||
if state == State.DASHING:
|
||||
if damager.has_method("kill"):
|
||||
damager.kill()
|
||||
else:
|
||||
if damage_clock <= 0.:
|
||||
|
|
|
|||
|
|
@ -15,10 +15,15 @@ run/main_scene="uid://c04ppsrjrkxb6"
|
|||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[audio]
|
||||
|
||||
buses/default_bus_layout="uid://bnw08msjouhf6"
|
||||
|
||||
[autoload]
|
||||
|
||||
SignalBus="*uid://cj4jk5xvv2n3l"
|
||||
DebugMenu="*uid://bm0f0u35a8t7h"
|
||||
MusicPlayer="*uid://brfvu7b2fdm0i"
|
||||
|
||||
[display]
|
||||
|
||||
|
|
|
|||
BIN
replace-me.mp3
Normal file
BIN
replace-me.mp3
Normal file
Binary file not shown.
19
replace-me.mp3.import
Normal file
19
replace-me.mp3.import
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://3c4uog8d4ahi"
|
||||
path="res://.godot/imported/replace-me.mp3-7daf056da07c9c51dbd7ae078e9e0fc1.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://replace-me.mp3"
|
||||
dest_files=["res://.godot/imported/replace-me.mp3-7daf056da07c9c51dbd7ae078e9e0fc1.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0.0
|
||||
bpm=0.0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
Loading…
Add table
Add a link
Reference in a new issue