Skip to content

Commit 72afebd

Browse files
committed
Fix Audio Issue
1 parent 0cc5230 commit 72afebd

File tree

8 files changed

+36
-10
lines changed

8 files changed

+36
-10
lines changed

builds/android/petra.apk

24.1 KB
Binary file not shown.

builds/html5/index.pck

24 KB
Binary file not shown.

builds/html5/index.png.import

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="StreamTexture"
5+
path="res://.import/index.png-2523555c7d9087f1340cdcb3fd562b42.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
9+
10+
[deps]
11+
12+
source_file="res://builds/html5/index.png"
13+
dest_files=[ "res://.import/index.png-2523555c7d9087f1340cdcb3fd562b42.stex" ]
14+
15+
[params]
16+
17+
compress/mode=0
18+
compress/lossy_quality=0.7
19+
compress/hdr_mode=0
20+
compress/bptc_ldr=0
21+
compress/normal_map=0
22+
flags/repeat=0
23+
flags/filter=true
24+
flags/mipmaps=false
25+
flags/anisotropic=false
26+
flags/srgb=2
27+
process/fix_alpha_border=true
28+
process/premult_alpha=false
29+
process/HDR_as_SRGB=false
30+
process/invert_color=false
31+
stream=false
32+
size_limit=0
33+
detect_3d=true
34+
svg/scale=1.0

builds/linux/petra.pck

24 KB
Binary file not shown.

builds/macos/petra.dmg

21.2 KB
Binary file not shown.

builds/windows/petra.pck

24 KB
Binary file not shown.

part2/part2.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ func _on_Area2D_body_entered(body):
2121
var sprite = temple.get_child(0)
2222
sprite.visible = true
2323
part.visible = false
24-
($Audio as AudioStreamPlayer).play()
24+
($Audio as AudioStreamPlayer2D).play()

part3/part3.gd

+1-9
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,10 @@ extends Node
22

33
onready var part = $Sprite
44

5-
# Declare member variables here. Examples:
6-
# var a = 2
7-
# var b = "text"
8-
9-
# Called when the node enters the scene tree for the first time.
10-
func _ready():
11-
pass # Replace with function body.
12-
135
func _on_Area2D_body_entered(body):
146
if body is Player:
157
var temple = get_tree().get_root().get_node('Stage').get_node('Temple').get_node('TempleL3')
168
var sprite = temple.get_child(0)
179
sprite.visible = true
1810
part.visible = false
19-
($Audio as AudioStreamPlayer).play()
11+
($Audio as AudioStreamPlayer2D).play()

0 commit comments

Comments
 (0)