Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

9 years ago by gosub

Just a quick hack I threw together to suspend/resume Impact on blur/focus. Uses less CPU while not in focus saving my laptop battery :)

Would also be useful for auto-pausing the game on blur.

https://gist.github.com/775473

9 years ago by ape

Very cool. I've often been worried about Impact just cranking away in the background while I write code.

9 years ago by jminor

Thanks for this. I also recommend adding ig.music.stop(); and ig.music.play(); to blur and focus respectively.
Page 1 of 1
« first « previous next › last »