The runtime weather effect the current level shows.
trx.weather.current (trx.weather.Type). The active weather. (read-only)
trx.weather.severity (number). How heavy the weather falls, as a multiple of the number of particles the
original games show. 1 is that number, 0 leaves the sky clear, and 4 is
as much as the particle pool holds; a value outside the range is clamped to it.
A level starts at 1, and a savegame carries what it was saved with.
The kinds of weather a level can show.
trx.weather.Type.NONE = 0trx.weather.Type.RAIN = 1trx.weather.Type.SNOW = 2trx.weather.set(type)
Sets the active weather.
Parameters:
type (trx.weather.Type). The weather to show.Example:
trx.weather.set(trx.weather.Type.SNOW)