Fix for particles emitting in the wrong area when using emitter.width/height. And small change to make animation looping more robust.



Forum post about the particle issue:
http://www.html5gamedevs.com/topic/1553-particles-spawning-incorrectly-when-emitter-widthheight-is-set/