Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes | ||
agi-game:leisuresuitlarry:reference-timer [2021/05/02 18:22] – frater | agi-game:leisuresuitlarry:reference-timer [2021/05/02 21:34] – [varClearStatusSeconds [v68]] frater | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
Larry is using a lot of timing and timer, their are all handled by logic0. | Larry is using a lot of timing and timer, their are all handled by logic0. | ||
+ | |||
+ | <code c> | ||
+ | #define varTimeLastElapsedSeconds | ||
+ | #define varTimingDelay | ||
+ | #define varClearStatusSeconds | ||
+ | #define varTimerSpraySeconds | ||
+ | #define varTimerSprayMinutes | ||
+ | #define varTimerBreathSpraySeconds | ||
+ | #define varSecondsSinceKeystroke | ||
+ | #define varGameTimeSecond | ||
+ | #define varGameTimeMinute | ||
+ | #define varGameTimeHour | ||
+ | </ | ||
Due to the " | Due to the " | ||
Ligne 9: | Ligne 22: | ||
The timing Handler increase seconds , until seconds reach 60. (To avoid the " | The timing Handler increase seconds , until seconds reach 60. (To avoid the " | ||
<code c> | <code c> | ||
- | #define varGameTimeHour | ||
- | #define varGameTimeMinute | ||
#define varGameTimeSecond | #define varGameTimeSecond | ||
+ | #define varGameTimeMinute | ||
+ | #define varGameTimeHour | ||
</ | </ | ||
The Time is also handled by variables v119 [H], v116 [M] and v115 [S] those variables are set to start the ingame clock at 10pm and has a special even if reach 4am (larry' | The Time is also handled by variables v119 [H], v116 [M] and v115 [S] those variables are set to start the ingame clock at 10pm and has a special even if reach 4am (larry' | ||
Ligne 24: | Ligne 37: | ||
==== varTimingDelay [v67] ==== | ==== varTimingDelay [v67] ==== | ||
- | This timer only raise (Set) the boolTimingDelayOut [f75] when reach 1 second left (not 0, to avoid loop to 255 (-1) value). | ||
- | The logic change the variable to what value they want to wait, and pool the boolTimingDelayOut | + | <code c> |
+ | #define varTimingDelay | ||
+ | </ | ||
- | The timing Handler decrease the value until it's reach 1. | + | This timer is used by any room logic to set a timer (example, if larry won't move, after few second the dog came in). |
- | ==== v68 ==== | + | This timer only raise (Set) the // |
+ | Any room logic can change the variable to what value they want to wait, and pool the // | ||
- | This timer clear part of the line #24 when reach 1 second left. | + | The timing Handler decrease the value until it's reach 1. |
+ | |||
+ | ==== varClearStatusSeconds [v68] ==== | ||
+ | |||
+ | This timer is used to clear part of the line #24 when reach 1 second left. | ||
It's used to clear bottom line. | It's used to clear bottom line. | ||
+ | <code c> | ||
+ | if (varClearStatusSeconds == 1) lear lower part of the screen half line (line 24) | ||
+ | { | ||
+ | clear.text.rect(24, | ||
+ | } | ||
+ | </ | ||
==== v72 & v71 ==== | ==== v72 & v71 ==== | ||