Closed DanielRuf closed 8 years ago
When I get rid of the randomizeWind function my snow doesn`t work. Have you found a way to get rid of the random wind?
@DekiGk This issue is quite old and I did not use Snowstorm since then. Do you have any errors in your browser console?
I should make this optional, but it's easy enough to have the individual velocity-setting just return the same values.
this.setVelocities = function() {
s.vX = storm.vMaxX;
s.vY = storm.vMaxY;
};
@scottschiller Thanks for this. I will try it out. @DanielRuf no errors, just couldn`t get rid of the random wind :D
we dont need line #461 of
https://github.com/scottschiller/Snowstorm/blob/master/snowstorm.js
when we want to have the same wind parameters and use the settings ofvMaxX
andvMaxY
so these values are not overwritten by thes.randomizeWind();
at each start