Fixed #7 with a nice cast-end sound (just reverse of cast sound).

This commit is contained in:
Nick Winter 2014-02-22 15:26:38 -08:00
parent 702eca5c81
commit b3009ae909

View file

@ -57,7 +57,7 @@ module.exports = class CastButtonView extends View
onCastSpells: (e) ->
@casting = true
Backbone.Mediator.publish 'play-sound', trigger: 'cast', volume: 0.25
Backbone.Mediator.publish 'play-sound', trigger: 'cast', volume: 0.5
@updateCastButton()
@onWorldLoadProgressChanged progress: 0
@ -67,6 +67,7 @@ module.exports = class CastButtonView extends View
onNewWorld: (e) ->
@casting = false
Backbone.Mediator.publish 'play-sound', trigger: 'cast-end', volume: 0.5
@updateCastButton()
updateCastButton: ->