agi-game:leisuresuitlarry:reference-timer

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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:30] – [Timing and Timers] frateragi-game:leisuresuitlarry:reference-timer [2021/05/02 21:34] – [varClearStatusSeconds [v68]] frater
Ligne 11: Ligne 11:
 #define varTimerBreathSpraySeconds    v80 #define varTimerBreathSpraySeconds    v80
 #define varSecondsSinceKeystroke      v91 #define varSecondsSinceKeystroke      v91
 +#define varGameTimeSecond             v115
 +#define varGameTimeMinute             v116
 +#define varGameTimeHour               v119
 </code> </code>
  
Ligne 34: Ligne 37:
  
 ==== varTimingDelay [v67] ==== ==== varTimingDelay [v67] ====
 +
 +<code c>
 +#define varTimingDelay                v67
 +</code>
 +
 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 48: 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, 0, 24, 15, BLACK);
 +    }
 +</code>    
 ==== v72 & v71 ==== ==== v72 & v71 ====
  
  • agi-game/leisuresuitlarry/reference-timer.txt
  • Dernière modification : 2022/06/09 20:37
  • de frater