Skip to content

Commit

Permalink
Restore explosion sound
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariasteam committed Dec 13, 2018
1 parent 4432548 commit afd3726
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Scenes/first_platform.gd
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ func _on_Area_body_enter( body ):
global.player.unlimit_rotation_range()

if (!body.is_in_group("camera")):
body.get_parent().on_platform_passed()
body.get_parent().on_platform_passed()
explode()

6 changes: 3 additions & 3 deletions Scenes/platform.gd
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ func send_next_platform_limits():
global.player.unlimit_rotation_range()

func explode():
send_next_platform_limits()
if (global.sound_enabled):
get_node("RegularExplosion").play()
send_next_platform_limits()
area.queue_free()
for child in children.get_children():
child.explode()
Expand All @@ -86,5 +84,7 @@ func meteorize():
func _on_Deleter_body_enter( body ):
if (!body.is_in_group("camera")):
body.get_parent().on_platform_passed()
if (global.sound_enabled):
get_node("RegularExplosion").play()
explode()

4 changes: 2 additions & 2 deletions Scenes/platform.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ _update_shape_index = 0
]]

stream/stream = ExtResource( 2 )
stream/play = true
stream/play = false
stream/loop = false
stream/volume_db = 10.0
stream/autoplay = false
stream/paused = true
stream/paused = false
stream/loop_restart_time = 0.0
stream/buffering_ms = 500

Expand Down
4 changes: 2 additions & 2 deletions export.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ user_permissions/6=""
user_permissions/7=""
user_permissions/8=""
user_permissions/9=""
version/code=8
version/name="1.0.3"
version/code=9
version/name="1.0.4"

[platform:BlackBerry 10]

Expand Down

0 comments on commit afd3726

Please sign in to comment.