mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-22 04:34:19 +00:00
✨ Add basic music playback
This commit is contained in:
parent
64643daf8f
commit
ff39de119a
4 changed files with 64 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://src/mechanics/Background.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://src/mechanics/Darkness.tscn" type="PackedScene" id=2]
|
||||
|
@ -7,6 +7,9 @@
|
|||
[ext_resource path="res://src/entities/Enemy.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://src/levels/Game.gd" type="Script" id=6]
|
||||
[ext_resource path="res://src/ui/TimeSurvived.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://src/music/BaseChoir.mp3" type="AudioStream" id=8]
|
||||
[ext_resource path="res://src/music/BaseDrum.mp3" type="AudioStream" id=9]
|
||||
[ext_resource path="res://src/music/BaseBell.mp3" type="AudioStream" id=10]
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource( 6 )
|
||||
|
@ -14,6 +17,20 @@ script = ExtResource( 6 )
|
|||
[node name="PhaseOne" type="CanvasLayer" parent="."]
|
||||
layer = 0
|
||||
|
||||
[node name="PhaseOneMusic" type="Node" parent="PhaseOne"]
|
||||
|
||||
[node name="BaseBell" type="AudioStreamPlayer" parent="PhaseOne/PhaseOneMusic"]
|
||||
stream = ExtResource( 10 )
|
||||
autoplay = true
|
||||
|
||||
[node name="BaseChoir" type="AudioStreamPlayer" parent="PhaseOne/PhaseOneMusic"]
|
||||
stream = ExtResource( 8 )
|
||||
autoplay = true
|
||||
|
||||
[node name="BaseDrum" type="AudioStreamPlayer" parent="PhaseOne/PhaseOneMusic"]
|
||||
stream = ExtResource( 9 )
|
||||
autoplay = true
|
||||
|
||||
[node name="PhaseOneContainer" type="Node2D" parent="PhaseOne"]
|
||||
|
||||
[node name="Background" parent="PhaseOne/PhaseOneContainer" instance=ExtResource( 1 )]
|
||||
|
@ -30,6 +47,7 @@ script = null
|
|||
position = Vector2( 500, 438 )
|
||||
|
||||
[node name="Enemy" parent="PhaseOne/PhaseOneContainer" instance=ExtResource( 5 )]
|
||||
visible = false
|
||||
position = Vector2( 755, 508 )
|
||||
|
||||
[node name="UserInterface" type="CanvasLayer" parent="."]
|
||||
|
|
15
src/music/BaseBell.mp3.import
Normal file
15
src/music/BaseBell.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/BaseBell.mp3-d9e3eb6f802cf5cf76c9dcde68c4dd9e.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/music/BaseBell.mp3"
|
||||
dest_files=[ "res://.import/BaseBell.mp3-d9e3eb6f802cf5cf76c9dcde68c4dd9e.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
15
src/music/BaseChoir.mp3.import
Normal file
15
src/music/BaseChoir.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/BaseChoir.mp3-124183b29102151c22280d44b12d3d3d.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/music/BaseChoir.mp3"
|
||||
dest_files=[ "res://.import/BaseChoir.mp3-124183b29102151c22280d44b12d3d3d.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
15
src/music/BaseDrum.mp3.import
Normal file
15
src/music/BaseDrum.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/BaseDrum.mp3-a4202f6ed509ab88b2f6a3b5c7f88c7c.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/music/BaseDrum.mp3"
|
||||
dest_files=[ "res://.import/BaseDrum.mp3-a4202f6ed509ab88b2f6a3b5c7f88c7c.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
Loading…
Reference in a new issue