These are chat archives for 7yl4r/the-oregon-trajectory

12th
Jun 2015
JrodManU
@JrodManU
Jun 12 2015 03:03
Woop woop. I fixed the SFX trailing bug and closed it.
Only took one line inside an if XD
JrodManU
@JrodManU
Jun 12 2015 11:03
Ok, trying to fix the mute not working for phaser
How could i get vm.muted from audiocontrols.js to asteroidmining.js? Ot would it be best to make some kind of global variable
Tylar
@7yl4r
Jun 12 2015 13:00
Nice! Happy to see you again, @JrodManU.
Tylar
@7yl4r
Jun 12 2015 13:16
So, phaser doesn't seem to have a global mute, which means we're going to have to tell all the games using phaser to not play the sounds, and the best way to do that is to use a $broadcast or $emit paired with a $on in asteroidMining.js.
JrodManU
@JrodManU
Jun 12 2015 16:16
Alright i can look into that stuff. Just needed to know what direction to go.
Tylar
@7yl4r
Jun 12 2015 16:19
there should be some examples in the code to help. Looking at this after a few hours though, I'm wondering if it might just make more sense to set a variable on game.data like muted=true
JrodManU
@JrodManU
Jun 12 2015 16:20
In the phaser stuff you can do game.sound.mute = true
Vm.game.sound.mute = true *
Tylar
@7yl4r
Jun 12 2015 16:47
oh nice