Clock
Inherits from Notifier
Clock that keeps the game running.
Variables
Name | Type | Description |
---|---|---|
player | The Player object | |
bar | DirectWaitBar | The Clock Bar |
seconds_per_hour | Integer | Integer retrieved from config ( |
hours_in_day | Integer | Integer retrieved from config ( |
time | Integer | The current time (Initiates as |
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 |
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 |