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 21:27] – [v68] frater | agi-game:leisuresuitlarry:reference-timer [2021/05/02 21:34] – [varClearStatusSeconds [v68]] frater | ||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
#define varClearStatusSeconds | #define varClearStatusSeconds | ||
#define varTimerSpraySeconds | #define varTimerSpraySeconds | ||
+ | #define varTimerSprayMinutes | ||
#define varTimerBreathSpraySeconds | #define varTimerBreathSpraySeconds | ||
#define varSecondsSinceKeystroke | #define varSecondsSinceKeystroke | ||
+ | #define varGameTimeSecond | ||
+ | #define varGameTimeMinute | ||
+ | #define varGameTimeHour | ||
</ | </ | ||
Ligne 33: | Ligne 37: | ||
==== varTimingDelay [v67] ==== | ==== varTimingDelay [v67] ==== | ||
+ | |||
+ | <code c> | ||
+ | #define varTimingDelay | ||
+ | </ | ||
+ | |||
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). | 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). | ||
- | This timer only raise (Set) the boolTimingScriptDone [f75] when reach 1 second left (not 0, to avoid loop to 255 (-1) value). | + | This timer only raise (Set) the //boolTimingScriptDone// [f75] when reach 1 second left (not 0, to avoid loop to 255 (-1) value). |
- | Any room logic can change the variable to what value they want to wait, and pool the boolTimingScriptDone [f75] flag for raise. | + | Any room logic can change the variable to what value they want to wait, and pool the //boolTimingScriptDone// [f75] flag for raise. |
The timing Handler decrease the value until it's reach 1. | The timing Handler decrease the value until it's reach 1. | ||
Ligne 47: | Ligne 56: | ||
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 ==== | ||