GOOC - Game Oriented Object C
GOOC - Game Oriented Object C
5.3.9. Time Constants
5.3.9. Time Constants
A time constant is a value that represents a timespan in seconds. Using gooc's -r parameter lets you select the target region for the compiled output (NTSC-U is the default region), which determines how time constants are parsed. NTSC regions run at 30 frames per second, while PAL regions run at 25 frames per second, meaning one second is transformed into 30 if NTSC is selected and 25 if PAL is selected. A time constant can be written as any integer or real number followed by the suffix s.
Either the integer part or the fractional part may be omitted, but not both. Here are some examples of valid time constants:
.5s
1s
60s
300s