Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine 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:27] – [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 varTimerBreathSpraySeconds | ||
+ | #define varSecondsSinceKeystroke | ||
+ | </ | ||
Due to the " | Due to the " | ||
Ligne 9: | Ligne 18: | ||
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 33: | ||
==== 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). | + | This timer is used by any room logic to set a timer (example, if larry won't move, after few second |
- | The logic change | + | This timer only raise (Set) the boolTimingScriptDone |
- | The timing Handler decrease | + | Any room logic can change |
- | ==== v68 ==== | + | The timing Handler decrease the value until it's reach 1. |
+ | ==== varClearStatusSeconds [v68] ==== | ||
- | This timer clear part of the line #24 when reach 1 second left. | + | 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. |