Skip to content

The Simulation

Shi Johnson-Bey edited this page Mar 6, 2024 · 2 revisions

Anansi's World Simulation

The Time System

Calypso's time system tracks the current day, week, weekday, and time of day. On each tick of the simulation, time advances to the next time of day. When the final time of day is reached, the date advances to the next day.

Current Times of Day:

  • Morning
  • Afternoon
  • Evening
  • Night

The time system is used to update background sprites, drive character schedules, and gate storylet content.

Accessing the current time from database queries

The current time is synced with the logical database and used for storylet queries.

The lines below show example entries for day three of the story.

date.time_of_day!Evening
date.day!3
date.weekday!Wednesday