0
|
1 /*
|
|
2 * $Id$
|
|
3 */
|
|
4
|
|
5 #include <stdio.h>
|
|
6 #include <stdlib.h>
|
|
7 #include "libps2.h"
|
|
8 #include "ps2util.h"
|
|
9
|
|
10 #include "camera.h"
|
|
11 #include "controler.h"
|
|
12 #include "lindaapi.h"
|
|
13 #include "col.h"
|
|
14 #include "field.h"
|
|
15 #include "car.h"
|
|
16 #include "game.h"
|
|
17 #include "gSprite.h"
|
|
18 #include "gFont.h"
|
|
19
|
|
20 /* schedule.c */
|
|
21 extern void schedule();
|
|
22 /* controler.c */
|
|
23 extern Bool padCheck();
|
|
24 /* linda.c */
|
|
25 #ifdef LINDA
|
|
26 extern int linda_init();
|
|
27 #else
|
|
28 #define linda_init() 1
|
|
29 #endif
|
|
30 extern void linda_update();
|
|
31
|
|
32 Game game;
|
|
33
|
9
|
34 extern void sche_game_init();
|
|
35 game.exec = sche_game_init;
|
|
36
|
0
|
37 void
|
|
38 game_main()
|
|
39 {
|
|
40 Bool flg = TRUE;
|
|
41 game.state = GAME_INIT;
|
|
42
|
|
43 game.play_id = linda_init();
|
|
44
|
9
|
45 while (1) {
|
0
|
46 flg = padCheck();
|
9
|
47 if (flg == FALSE) {
|
|
48 break;
|
0
|
49 }
|
|
50 schedule();
|
|
51
|
|
52 #ifdef LINDA
|
9
|
53 linda_update();
|
|
54 psx_sync_n();
|
0
|
55 #endif
|
|
56 }
|
|
57 }
|