Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

timeOfDay



This library handles "time of day" and adjustment of the lighting color.

Methods

Variables

maxTime (1440)

the length of a single day

brightness (255)

the current brightness value

lightLevels

a table containing all the color values for different times of day. The keys are: night, earlyDawn, dawn, morning, day, evening.

lowestLightLevel

keeps track of the lowest light level based on all the colors in the lightLevels table

Events

NEW_HOUR

fired when an "hour" has passed.