Frostbite Hazards: Snowballs, Icicles, Wind and Vents for Platformers
README.md
frostHazards.kinds
How every frostHazards kind is built, animated and judged: per kind build(root, cfg), animate(h, cfg, t, dt), danger(cfg, t, cap) and push(cfg, t, cap), plus the pure timing functions (snowballState, icicleState, windState, ventState, avalancheState, rockState, thinIceState, spikeState). The contract for a kind of your own is at the top of the file. Used by the Hazard component and the tests.