Mercurial > hg > old > magoroku_racing
comparison Magoroku.cc @ 119:f2e2460b4011
draw_title
author | e085768 |
---|---|
date | Sun, 19 Jun 2011 02:16:20 +0900 |
parents | 9e4100c5d7ec |
children | 5219bf3d5e71 |
comparison
equal
deleted
inserted
replaced
118:b6dc70f6aa7e | 119:f2e2460b4011 |
---|---|
7 #include "ps2util.h" | 7 #include "ps2util.h" |
8 | 8 |
9 #include "sjoy.h" | 9 #include "sjoy.h" |
10 //magoroku 関係ココまで | 10 //magoroku 関係ココまで |
11 | 11 |
12 #include "SgoexCerium.h" | |
13 #include <ctype.h> | 12 #include <ctype.h> |
14 #include <math.h> | 13 #include <math.h> |
15 #include <time.h> | 14 #include <time.h> |
16 #include <SDL.h> | 15 #include <SDL.h> |
17 #include "SDL_opengl.h" | 16 #include "SDL_opengl.h" |
18 | 17 |
19 //#include "tree_controll.h" | |
20 #include "xml.h" | 18 #include "xml.h" |
21 #include "profile.h" | 19 #include "profile.h" |
22 //#include "syokika.h" | 20 //#include "syokika.h" |
23 //#include "sankaku.h" | |
24 | 21 |
25 #include "sound.h" | 22 #include "sound.h" |
26 //#include "bom.h" | |
27 //#include "count2.h" | |
28 //#include "tokuten.h" | |
29 //#include "tama.h" | |
30 //#include "debug.h" | |
31 //#include "trace.h" | |
32 #include "LoadSprite.h" | 23 #include "LoadSprite.h" |
33 #include <SDL_mixer.h> | 24 #include <SDL_mixer.h> |
34 #include "error.h" | 25 #include "error.h" |
35 #include "matrix_calc.h" | 26 #include "matrix_calc.h" |
36 | 27 |
37 //#include "Character.h" | |
38 //#include "Character_state.h" | |
39 | |
40 #include "Light.h" | 28 #include "Light.h" |
41 | 29 |
42 | 30 |
43 //static SDL_Surface *screen; | |
44 // static Uint32 background; | |
45 // static char *pad_trace_file; | |
46 | 31 |
47 | |
48 // tree_Dandy の schedule3.c | |
49 //extern void schedule(); | |
50 | |
51 | |
52 //extern void tokuten(); | |
53 extern bool padCheck(SDL_Joystick *joy); | 32 extern bool padCheck(SDL_Joystick *joy); |
54 extern bool keybord(void); | 33 extern bool keybord(void); |
55 //static int gamesyokika(int gamef); | |
56 //static int game_pause(int); | |
57 //static char *pad_trace_file; | |
58 | |
59 | |
60 | |
61 | 34 |
62 | 35 |
63 /** | 36 /** |
64 * runmode: | 37 * runmode: |
65 * 0 - normal game | 38 * 0 - normal game |
128 ゲームの分岐。magoroku の schedule の処理と同等と考えてオッケーかな? | 101 ゲームの分岐。magoroku の schedule の処理と同等と考えてオッケーかな? |
129 */ | 102 */ |
130 HTaskPtr | 103 HTaskPtr |
131 Magoroku::application_task(HTaskPtr next, Viewer* viewer){ | 104 Magoroku::application_task(HTaskPtr next, Viewer* viewer){ |
132 | 105 |
133 // magoroku_racing | 106 // magoroku_racing |
134 game_main(); | 107 game_main(); |
135 | 108 |
136 /* | 109 /* |
137 // Dandy | 110 // Dandy |
138 printf("gamef = %d\n",gamef); | 111 printf("gamef = %d\n",gamef); |
171 if (i+1<argc && argv[i+1]) { | 144 if (i+1<argc && argv[i+1]) { |
172 i++; | 145 i++; |
173 } | 146 } |
174 } | 147 } |
175 } | 148 } |
176 | |
177 task_init(); | 149 task_init(); |
178 task_initialize(); | 150 task_initialize(); |
179 manager->set_TMend(TMend); | 151 manager->set_TMend(TMend); |
180 | 152 |
181 // magoroku_racing の main.ccから | 153 // magoroku_racing の main.ccから |
192 | 164 |
193 //static int light_sysswitch = 0; | 165 //static int light_sysswitch = 0; |
194 //static int light_num = 4; | 166 //static int light_num = 4; |
195 | 167 |
196 | 168 |
169 | |
170 static int light_sysswitch = 0; | |
171 static int light_num = 4; | |
172 | |
197 // ceriumuで同じ変数名があるから _2 って付け足しました | 173 // ceriumuで同じ変数名があるから _2 って付け足しました |
198 /* | |
199 static void | 174 static void |
200 LightSysSwitch_2(Viewer *sgroot) { | 175 LightSysSwitch_2(Viewer *sgroot) { |
201 if (light_sysswitch == 1) { | 176 if (light_sysswitch == 1) { |
202 sgroot->OnLightSysSwitch(); | 177 sgroot->OnLightSysSwitch(); |
203 for (int i = 0; i < light_num; i++) { | 178 for (int i = 0; i < light_num; i++) { |
209 } | 184 } |
210 } else if (light_sysswitch == 0) { | 185 } else if (light_sysswitch == 0) { |
211 sgroot->OffLightSysSwitch(); | 186 sgroot->OffLightSysSwitch(); |
212 } | 187 } |
213 } | 188 } |
214 */ | 189 |