monotony Help

Clock

Inherits from Notifier

Clock that keeps the game running.

Variables

Name

Type

Description

player

Player

The Player object

bar

DirectWaitBar

The Clock Bar

seconds_per_hour

Integer

Integer retrieved from config (secs-per-hour, default 10)

hours_in_day

Integer

Integer retrieved from config (hours-in-day, default 24)

time

Integer

The current time (Initiates as starting-time in config or 600)

egg

NodePath

Egg with clock assets

toggle

DirectButton

Button to pause the clock

paused

Boolean

Is clock paused?

offset_time

Integer

Keeps track of how long the game has been paused.

Functions

Name

Description

run_clock(task)

Function called when progressing clock

start_clock

Adds run_clock to the Task Manager

stop_clock

Stops the clock

progress_hour

Move the clock forward an hour and calls Player deterioration.

toggle_clock

Pauses or unpauses the clock

resume_clock

Resumes clock if currently paused

Last modified: 31 December 2024