TethysGame

From OPU Wiki


Day & Night

To create a day & night game, use the following functions:

  • SetDaylightEverywhere : Disables day&night, setting daylight everywhere
  • SetDaylightMoves : Enables the movement of the day. When set to 0, you can create an eternal night
  • SetInitialLightLevel : Determines where "high-noon" is. By default the value is 0, positioning it at x= -31. (see also Map_Coordinates). It takes the map { width+32 } gamecycles to rotate around its axis. For example: a 128-tile wide map takes 160 gameticks for the day to return to its starting point.