Based on https://codepen.io/wikyware-net/pen/rNmaqBz . Resize handler was removed but can be reimplemented from source, but then it would need to react to the Hype dimensions.
This is the most convincing artificially generated snow I've ever seen.
And the best … if you observed it carefully the vector of each flake is a straight line (on an angle). Flakes "changing" direction is only an illusion… we don’t see crossing linear flakes, but project our expectation of snow falling in a wobbly line.
obj.x += obj.vx; obj.y += obj.vy;
Thanks @MaxZieb for your kind help!!
It seem there is some errors, anyway to fix?
By the way, is is possible to enable flexible layout, so that it also work in mobile mode?
I actually removed the resize event as it was based on the window port and not the hype container dimensions. Just comment the line in code containing the variable mentioned in the screenshot.
If you need flexible scale based resizing you would need to implement it using layout request or some other method watching the container dimensions or use the original window port based re-initialization (resize event).
For simple fixed scene size responsiveness just stop the snow on scene uploads and start it on scene loads and use different container sizes.
You might need to tweak the code.