-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdirection.c
More file actions
35 lines (33 loc) · 1.2 KB
/
direction.c
File metadata and controls
35 lines (33 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#if VIDEO_TYPE == 1 || VIDEO_TYPE == 2
// NTSC and MPAL are 60hz
#define TTT(fc) (fc)
#else
// PAL is 50 Hz
#define TTT(fc) ((fc) * 50 / 60)
#endif
// Parts of the intro: frames at which the various parts begin
#define T_START TTT(0)
#define T_INTRO TTT(400/2)
#define T_FRACTAL TTT(850/2)
// For some reason I couldn't debug, the NTSC version drifts a bit with timing
// compared to PAL (framecount runs too fast compared to music). So adjust
// a bit the timings on NTSC to make it end properly.
#if VIDEO_TYPE == 0
#define T_MESH TTT(1800/2)
#define T_CREDITS TTT(2200/2)
#define T_ANIMATE TTT(3500/2)
#define T_MESH2 TTT(4900/2)
#define T_ANIMSTOP TTT(5250/2)
#define T_PUMP TTT(5330/2)
#define T_NOISE2 TTT(5650/2)
#define T_END TTT(6100/2)
#else
#define T_MESH TTT(1900/2 * 9 / 10)
#define T_CREDITS TTT(2280/2 * 9 / 10)
#define T_ANIMATE TTT(3500/2 * 9 / 10)
#define T_MESH2 TTT(4700/2 * 9 / 10)
#define T_ANIMSTOP TTT(5100/2 * 9 / 10)
#define T_PUMP TTT(5355/2 * 9 / 10)
#define T_NOISE2 TTT(5720/2 * 9 / 10)
#define T_END TTT(6200/2 * 9 / 10)
#endif