mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed #7 with a nice cast-end sound (just reverse of cast sound).
This commit is contained in:
parent
702eca5c81
commit
b3009ae909
1 changed files with 2 additions and 1 deletions
|
@ -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: ->
|
||||
|
|
Loading…
Reference in a new issue