Skip to content

Commit

Permalink
fix intro melody
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Sep 27, 2020
1 parent dc3fab1 commit 6ae57ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
6 changes: 4 additions & 2 deletions scenes/newgame.gd
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ func _ready():
$FourColorsCheckBox.pressed = Global.useFourColors
$AutoCritCheckBox.pressed = Global.useAutoCrits
get_current_highscore()

$Music/StartPlayer.connect("finished", $Music/LoopPlayer, "play")

func _process(delta):
fade_music_if_needed(delta)
# fade_music_if_needed(delta)
pass

func get_current_highscore():
var http_request = HTTPRequest.new()
Expand Down
11 changes: 4 additions & 7 deletions scenes/newgame.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[ext_resource path="res://scenes/newgame.gd" type="Script" id=2]
[ext_resource path="res://fonts/audiowide-large.tres" type="DynamicFont" id=3]
[ext_resource path="res://fonts/audiowide.tres" type="DynamicFont" id=4]
[ext_resource path="res://sounds/intro_loop.wav" type="AudioStream" id=5]
[ext_resource path="res://sounds/intro_start.wav" type="AudioStream" id=6]
[ext_resource path="res://sounds/intro_start.wav" type="AudioStream" id=5]
[ext_resource path="res://sounds/intro_loop.wav" type="AudioStream" id=6]

[node name="newgame" type="Node2D"]
script = ExtResource( 2 )
Expand Down Expand Up @@ -86,11 +86,8 @@ __meta__ = {
[node name="Music" type="Node" parent="."]

[node name="StartPlayer" type="AudioStreamPlayer" parent="Music"]
stream = ExtResource( 6 )
stream = ExtResource( 5 )
autoplay = true
bus = "Music"

[node name="LoopPlayer" type="AudioStreamPlayer" parent="Music"]
stream = ExtResource( 5 )
volume_db = -80.0
bus = "Music"
stream = ExtResource( 6 )
2 changes: 1 addition & 1 deletion sounds/intro_start.wav.import
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop=true
edit/loop=false
compress/mode=0

0 comments on commit 6ae57ea

Please sign in to comment.