Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

ambientSounds



This library handles registration of ambient sound templates which are then played back while the game time is going by.

sound template structure:
id - MANDATORY string, the unique identifier for this sound template
type - MANDATORY string, either "playonce" or "loop", determines behavior of the sound, it must match the flag of the sound that it uses
sounds - MANDATORY table containing the sounds which will be selected randomly, these sounds must be registered in advance
frequency - MANDATORY table containing 2 values to roll it's own delay from - 'min' and 'max'
vol - OPTIONAL float describing the volume of the sound (defaults to 0.35, aka 35%)

fadeInSpeed - (LOOP ONLY) OPTIONAL float describing how fast the looped sound will fade in
fadeOutSpeed - (LOOP ONLY) OPTIONAL float describing how fast the looped sound will fade out
meetsRequirements - OPTIONAL function, this is where you can add additional validity checks to limit the playback of the sound

Methods