annotate schedule.c @ 89:aff757cc46d7

Added tag ps2 for changeset ce9ef7dcf2f0
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 19 May 2011 16:38:44 +0900
parents ce9ef7dcf2f0
children 8edae89a3877
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 /*
17
6910aeb52843 *** empty log message ***
gongo
parents: 16
diff changeset
2 * $Id$
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
3 */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4 #include <stdio.h>
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5 #include <stdlib.h>
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6 #include <string.h>
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
7 #include "libps2.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
8 #include "ps2util.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
9 #include "field.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
10 #include "car.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
11 #include "gSprite.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
12 #include "gFont.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
13 #include "game.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
14 #include "controler.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
15 #include "camera.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
16 #include "light.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
17 #include "title_scene.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
18 #include "game_time.h"
45
d7520785d8a6 *** empty log message ***
gongo
parents: 44
diff changeset
19 #include "schedule.h"
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
20
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
21 #ifdef LINDA
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
22 extern Bool linda_update(int);
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
23 #else
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
24 #define linda_update(int) TRUE
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
25 #endif
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
26
88
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
27 #define MAXCAR 3 // 選択可能機体
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
28 #define MAXFIELD 2 // 選択可能コース
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
29 #define MAXRAP 3 // ラップ数
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
30 #define SP_SEL_CAR 50
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
31 #define SP_SEL_COURSE 80
4
d214fd22ef16 *** empty log message ***
gongo
parents: 3
diff changeset
32
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
33 /* --- car.c --- */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
34 extern void car_update(CarPtr);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
35 /* --- carNode.c */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
36 extern void carNode_append(CarPtr);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
37 extern void carNode_draw();
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
38 extern void carNode_destroy();
43
a1908b83f8fa *** empty log message ***
gongo
parents: 32
diff changeset
39 /* --- fielc.c */
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
40 extern void field_update(CarPtr);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
41 /* --- mytype.c --- */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
42 extern void wait_init();
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
43 extern Bool wait(double);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
44 extern void time_RaceStart();
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
45 extern double time_RaceTime();
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
46 /* --- linda.c --- */
43
a1908b83f8fa *** empty log message ***
gongo
parents: 32
diff changeset
47 extern void linda_env_init();
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
48
46
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
49
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
50
20
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
51 /* timer */
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
52 static int start_time,time_count;
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
53 static int RUNNIG=0;
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
54 char raptime[10];
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
55
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
56 static int ranking = 0;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
57 static LIGHT l;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
58
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
59 static int i=0;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
60
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
61 static void (*sche_func_assumption)();
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
62 static void (*sche_func)() = &sche_game_init;
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
63 static int change_state = 0;
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
64 static void
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
65 set_schedule_assumption(void *_func)
11
41d3037c34c8 *** empty log message ***
gongo
parents: 8
diff changeset
66 {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
67 sche_func_assumption = _func;
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
68 change_state = 1;
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
69 }
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
70
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
71 static void
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
72 unset_schedule()
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
73 {
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
74 change_state = 0;
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
75 }
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
76
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
77 static void
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
78 set_schedule()
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
79 {
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
80 sche_func = sche_func_assumption;
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
81 change_state = 0;
11
41d3037c34c8 *** empty log message ***
gongo
parents: 8
diff changeset
82 }
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
83
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
84 static void
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
85 graphic_init()
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
86 {
88
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
87 gSprite_Init(); // グラフィック関連の初期化
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
88 gFont_Init(); // フォント関連の初期化
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
89 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
90
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
91 static void
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
92 play_init()
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
93 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
94 game.jiki = car_init(game.car_id);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
95 carNode_append(game.jiki);
32
b5c5ffd4d2f2 *** empty log message ***
gongo
parents: 31
diff changeset
96 field_init(game.course_id);
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
97 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
98
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
99 static void
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
100 game_env_init()
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
101 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
102 game.car_id = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
103 game.course_id = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
104 game.camera_type = 0;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
105 game.rap = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
106 game.jiki = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
107
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
108 ranking = 0;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
109
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
110 wait_init();
43
a1908b83f8fa *** empty log message ***
gongo
parents: 32
diff changeset
111 linda_env_init();
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
112 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
113
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
114
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
115
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
116 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
117 sche_game_init()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
118 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
119 game_env_init();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
120 graphic_init();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
121 camera_init();
8
f60cb9a39d7a *** empty log message ***
gongo
parents: 5
diff changeset
122
46
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
123 #ifdef LINDA
64
e6a6dde71701 *** empty log message ***
gongo
parents: 62
diff changeset
124 sche_func = &sche_game_wait;
e6a6dde71701 *** empty log message ***
gongo
parents: 62
diff changeset
125 //set_schedule_assumption(sche_game_wait);
46
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
126 #else
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
127 set_schedule_assumption(sche_game_opening);
46
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
128 #endif
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
129 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
130
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
131 /**
88
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
132 * 通信対戦専用
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
133 * 全ユーザが接続するまで待つ
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
134 */
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
135 static void
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
136 sche_game_wait()
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
137 {
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
138 gFont_SetString("WAITING...", 200, 100);
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
139 set_schedule_assumption(sche_game_wait_ready);
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
140 }
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
141
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
142 /**
88
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
143 * 通信対戦専用
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
144 * 全ユーザの接続を確認したら呼び出す
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
145 */
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
146 static void
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
147 sche_game_wait_ready()
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
148 {
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
149 gFont_SetString("CONNECT OK!!", 170, 300);
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
150 if (game.play_id == 1) {
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
151 gFont_SetString(" PUSH START ", 170, 400);
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
152 if (pad.st != 1) { goto WAIT_READY; }
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
153 }
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
154
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
155 set_schedule_assumption(sche_game_opening);
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
156
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
157 WAIT_READY:
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
158 return;
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
159 }
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
160
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
161 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
162 sche_game_opening()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
163 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
164 static int blink_count = 0;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
165 if (game.play_id==1){
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
166 if (blink_count < 35) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
167 gFont_SetString("PUSH START !!", 170, 380);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
168 }
20
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
169 blink_count = (blink_count > 70) ? 0 : blink_count + 1;
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
170
46
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
171 if (pad.st != 1) { goto OPENING; }
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
172 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
173
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
174
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
175 set_schedule_assumption(sche_game_select_car);
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
176
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
177 OPENING:
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
178 return;
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
179
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
180 /*
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
181 if (game.play_id == 1) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
182 if (title_scene() < 0){
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
183 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
184 } else if (game.play_id == 2) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
185 if (i==0){
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
186 title_init_call();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
187 i=1;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
188 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
189 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
190 */
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
191 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
192
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
193 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
194 sche_game_select_car()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
195 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
196 if (i==1){
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
197 title_finish_call();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
198 i=2;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
199 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
200 gSprite_PutSpriteEx(SP_SEL_CAR+game.car_id, 190, 200, 1.5, 1.5);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
201 gSprite_PutSprite(24, 460, 300);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
202 gSprite_PutSprite(25, 120, 300);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
203 gFont_SetString("SELECT CAR", 180, 50);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
204
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
205 if (pad.right == 1) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
206 game.car_id =
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
207 (game.car_id > MAXCAR-1) ? 1 : game.car_id + 1;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
208 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
209 if (pad.left == 1) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
210 game.car_id =
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
211 (game.car_id < 2) ? MAXCAR : game.car_id - 1;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
212 }
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
213
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
214 if (game.play_id == 1)
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
215 if (pad.circle != 1) { goto SELECT_CAR; }
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
216
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
217
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
218 set_schedule_assumption(sche_game_select_course);
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
219
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
220 SELECT_CAR:
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
221 return;
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
222 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
223
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
224 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
225 sche_game_select_course()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
226 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
227 gSprite_PutSpriteEx(SP_SEL_COURSE+game.course_id, 190, 200, 1.7, 1.8);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
228 gSprite_PutSprite(24, 460, 300);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
229 gSprite_PutSprite(25, 120, 300);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
230
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
231 gFont_SetString("SELECT COURSE", 150, 50);
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
232
46
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
233 if (game.play_id == 1) {
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
234 if (pad.right == 1) {
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
235 game.course_id =
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
236 (game.course_id > MAXFIELD-1) ? 1 : game.course_id + 1;
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
237 goto SELECT_COURSE;
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
238 }
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
239 if (pad.left == 1) {
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
240 game.course_id =
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
241 (game.course_id < 2) ? MAXFIELD : game.course_id - 1;
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
242 goto SELECT_COURSE;
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
243 }
46
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
244
abadcc080667 *** empty log message ***
gongo
parents: 45
diff changeset
245 if (pad.circle != 1) { goto SELECT_COURSE; }
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
246 }
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
247
68
c72f11630cb0 *** empty log message ***
gongo
parents: 65
diff changeset
248 set_schedule_assumption(sche_game_ready);
44
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
249
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
250 SELECT_COURSE:
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
251 return;
3b71b39411b1 *** empty log message ***
gongo
parents: 43
diff changeset
252
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
253 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
254
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
255 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
256 sche_game_ready()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
257 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
258 static int blink_count = 0;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
259
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
260 gSprite_PutSprite(27+game.play_id,265,10);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
261 gSprite_PutSpriteEx(SP_SEL_CAR+game.car_id, 50, 120, 1.5, 1.5);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
262 gSprite_PutSpriteEx(SP_SEL_COURSE+game.course_id, 340, 120, 1.7, 1.8);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
263
88
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
264 /* 点滅 */
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
265 if (blink_count < 35) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
266 gFont_SetString("GAME START !!", 170, 380);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
267 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
268 blink_count = (blink_count > 70) ? 0 : blink_count + 1;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
269
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
270 set_schedule_assumption(sche_game_main_init);
52
c875add6256e *** empty log message ***
gongo
parents: 46
diff changeset
271
c875add6256e *** empty log message ***
gongo
parents: 46
diff changeset
272 /*
c875add6256e *** empty log message ***
gongo
parents: 46
diff changeset
273 if (pad.st == 1) {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
274 set_schedule_assumption(sche_game_main_init);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
275 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
276 if (pad.cross > 0) {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
277 set_schedule_assumption(sche_game_select_car);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
278 }
52
c875add6256e *** empty log message ***
gongo
parents: 46
diff changeset
279 */
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
280 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
281
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
282 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
283 sche_game_main_init()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
284 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
285 if (!game.jiki)
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
286 play_init();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
287 RUNNIG=0;
52
c875add6256e *** empty log message ***
gongo
parents: 46
diff changeset
288
72
00430c172e5b *** empty log message ***
gongo
parents: 68
diff changeset
289 set_schedule_assumption(sche_game_main_ready);
00430c172e5b *** empty log message ***
gongo
parents: 68
diff changeset
290 }
00430c172e5b *** empty log message ***
gongo
parents: 68
diff changeset
291
00430c172e5b *** empty log message ***
gongo
parents: 68
diff changeset
292 static void
00430c172e5b *** empty log message ***
gongo
parents: 68
diff changeset
293 sche_game_main_ready()
00430c172e5b *** empty log message ***
gongo
parents: 68
diff changeset
294 {
75
89ede83e7959 *** empty log message ***
gongo
parents: 72
diff changeset
295 gFont_SetString("Loading....", 180, 100);
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
296 set_schedule_assumption(sche_game_main);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
297 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
298
72
00430c172e5b *** empty log message ***
gongo
parents: 68
diff changeset
299 static void
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
300 sche_game_main()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
301 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
302
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
303 /** begin: dispaly RAP TIME **/
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
304 if(RUNNIG==0){
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
305 start_time = game_time_get_msec();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
306 RUNNIG=1;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
307 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
308
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
309 time_count = game_time_get_msec() - start_time;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
310 game_time_set_raptime(raptime,time_count);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
311 gFont_SetString("TIME",300,20);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
312 gFont_SetString(raptime,400,20);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
313 /** end: dispaly RAP TIME **/
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
314
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
315 light_init(&l);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
316 set_light(&l);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
317
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
318 car_update(game.jiki);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
319 field_update(game.jiki);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
320 camera_update(game.jiki->body->transfer);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
321 carNode_draw();
20
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
322
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
323 gFont_SetStringInt(game.rap, 50, 100);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
324
88
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
325 /* スピードメーター */
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
326 gSprite_DefSprite(23, 1, 1,(int)(106.0*(game.jiki->speed/game.jiki->speed_max)), 34);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
327 gSprite_PutSprite(23, 400, 400);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
328 /* km/h */
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
329 gSprite_PutSprite(26, 470, 350);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
330 /* Rap */
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
331 gSprite_PutSprite(27, 80, 100);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
332
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
333 if (game.rap > MAXRAP) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
334 ranking = 1;
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
335 set_schedule_assumption(sche_game_main_goal);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
336 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
337
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
338 gFont_SetStringInt((int)(100.0*game.jiki->speed), 380, 350);
20
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
339
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
340 if ((pad.right > 0) && ((game.jiki->speed != 0) || (pad.circle > 0))) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
341 car_swerve(game.jiki, 1);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
342 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
343 if ((pad.left > 0) && ((game.jiki->speed != 0) || (pad.circle > 0))) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
344 car_swerve(game.jiki, -1);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
345 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
346 if (pad.circle > 0) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
347 car_accelerate(game.jiki, 1);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
348 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
349 if (pad.cross > 0) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
350 car_accelerate(game.jiki, -1);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
351 }
20
b1ba4dad7f6e *** empty log message ***
gongo
parents: 19
diff changeset
352
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
353 if (pad.r1 == 1) {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
354 game.camera_type = !game.camera_type;
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
355 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
356 if (pad.st == 1) {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
357 set_schedule_assumption(sche_game_main_pause);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
358 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
359 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
360
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
361 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
362 sche_game_main_pause()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
363 {
26
4447fd650f60 *** empty log message ***
gongo
parents: 20
diff changeset
364 static int select = 0;
4447fd650f60 *** empty log message ***
gongo
parents: 20
diff changeset
365
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
366 field_update(game.jiki);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
367 carNode_draw();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
368
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
369 if (game.play_id == 1) {
88
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 75
diff changeset
370 /* 選択マーク */
26
4447fd650f60 *** empty log message ***
gongo
parents: 20
diff changeset
371 gSprite_PutSprite(17, 100, 190+select*100);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
372
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
373 gFont_SetString("BACK TO GAME", 200, 200);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
374 gFont_SetString("GO TO TITLE", 200, 300);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
375 } else {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
376 gFont_SetString("Pause ...", 200, 200);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
377 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
378
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
379 if (pad.circle == 1) {
26
4447fd650f60 *** empty log message ***
gongo
parents: 20
diff changeset
380 if (select == 0) {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
381 set_schedule_assumption(sche_game_main);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
382 } else {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
383 set_schedule_assumption(sche_game_main_finish);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
384 }
27
618f39723403 *** empty log message ***
gongo
parents: 26
diff changeset
385 } else if (pad.st == 1) {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
386 set_schedule_assumption(sche_game_main);
27
618f39723403 *** empty log message ***
gongo
parents: 26
diff changeset
387 } else if (pad.up == 1 || pad.down == 1) {
26
4447fd650f60 *** empty log message ***
gongo
parents: 20
diff changeset
388 select = !select;
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
389 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
390 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
391
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
392 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
393 sche_game_main_goal()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
394 {
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
395 /** dispaly TOTAL TIME **/
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
396 game_time_set_raptime(raptime,time_count);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
397
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
398 gFont_SetString("TOTAL TIME",150,20);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
399 gFont_SetString(raptime,400,20);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
400 gFont_SetString("GOAL !!", 220, 150);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
401
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
402 #ifdef LINDA
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
403 if (ranking == 1)
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
404 gFont_SetString("You WIN!!", 200, 250);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
405 else
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
406 gFont_SetString("You Lose...", 200, 250);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
407 #endif
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
408
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
409 car_update(game.jiki);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
410 field_update(game.jiki);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
411 carNode_draw();
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
412 camera_update(game.jiki->body->transfer);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
413 if (pad.st == 1) {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
414 set_schedule_assumption(sche_game_main_finish);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
415 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
416 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
417
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
418 void
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
419 sche_game_main_finish()
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
420 {
30
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
421 field_destroy();
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
422 carNode_destroy();
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
423 game_env_init();
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
424
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
425 set_schedule_assumption(sche_game_main_finish2);
30
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
426 }
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
427
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
428 void
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
429 sche_game_main_finish2()
7a348d9ce4ac *** empty log message ***
gongo
parents: 27
diff changeset
430 {
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
431 gFont_SetString("GAME OVER ...", 200, 200);
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
432
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
433 if (pad.st == 1) {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
434 set_schedule_assumption(sche_game_opening);
2
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
435 }
b6a1385f19be *** empty log message ***
gongo
parents: 0
diff changeset
436 }
3
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
437
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
438
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
439 void
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
440 schedule()
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
441 {
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
442 sche_func();
3
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
443
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
444 if (linda_update(change_state) == TRUE)
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
445 set_schedule();
62
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
446 else
d71fbefaa9a9 *** empty log message ***
gongo
parents: 60
diff changeset
447 unset_schedule();
58
1cccf6d964b7 *** empty log message ***
gongo
parents: 55
diff changeset
448
3
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
449 wait_sync();
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
450 swap_dbuff();
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
451 sjoy_poll();
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
452
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
453 ps2util_sprite_Draw();
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
454 gSprite_Draw_Reset();
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
455 gFont_Draw_Reset();
38aedf763052 *** empty log message ***
gongo
parents: 2
diff changeset
456 }