comparison schedule.cc @ 119:f2e2460b4011

draw_title
author e085768
date Sun, 19 Jun 2011 02:16:20 +0900
parents b6dc70f6aa7e
children 5219bf3d5e71
comparison
equal deleted inserted replaced
118:b6dc70f6aa7e 119:f2e2460b4011
96 } 96 }
97 97
98 static void 98 static void
99 graphic_init() 99 graphic_init()
100 { 100 {
101 printf("graphic_init()\n");
102
101 gSprite_Init(); // グラフィック関連の初期化 103 gSprite_Init(); // グラフィック関連の初期化
102 gFont_Init(); // フォント関連の初期化 104 gFont_Init(); // フォント関連の初期化
105
103 } 106 }
104 107
105 static void 108 static void
106 play_init( Game *game ) 109 play_init( Game *game )
107 { 110 {
108 printf("plya_init1()\n");
109 printf("game->car_id = %d\n",game->car_id); 111 printf("game->car_id = %d\n",game->car_id);
110 //printf("game->jiki->speed = %f\n",game->jiki->speed); 112 //printf("game->jiki->speed = %f\n",game->jiki->speed);
111 game->jiki = car_init(game->car_id); 113 game->jiki = car_init(game->car_id);
112 114
113 printf("plya_init2()\n");
114 carNode_append(game->jiki); 115 carNode_append(game->jiki);
115 116
116 printf("plya_init3()\n");
117 field_init(game->course_id); 117 field_init(game->course_id);
118 } 118 }
119 119
120 // 適当に自作 :miya 120 // 適当に自作 :miya
121 void linda_env_init( void ) 121 void linda_env_init( void )
140 140
141 void 141 void
142 sche_game_init(Game *game) 142 sche_game_init(Game *game)
143 { 143 {
144 printf("sche_game_init()\n"); 144 printf("sche_game_init()\n");
145 145
146 game_env_init(game); 146 game_env_init(game);
147 graphic_init(); 147 graphic_init();
148 camera_init(); 148 camera_init();
149 149
150 #ifdef LINDA 150 #ifdef LINDA
200 { 200 {
201 printf("sche_game_opening\n"); 201 printf("sche_game_opening\n");
202 202
203 static int blink_count = 0; 203 static int blink_count = 0;
204 204
205 // 試しブレンダーで作ったタイトルを表示してみたひ
206 flip();
207 gSprite_PutSprite(10, 100, 100);
208 //flip();
209
210
205 //ここを現在通らないらしい。 211 //ここを現在通らないらしい。
206 if (game->play_id==1){ 212 if (game->play_id==1){
207 if (blink_count < 35) { 213 if (blink_count < 35) {
208 gFont_SetString("PUSH START !!", 170, 380); 214 gFont_SetString("PUSH START !!", 170, 380);
209 } 215 }
213 if (pad.st != 1) { goto OPENING; } 219 if (pad.st != 1) { goto OPENING; }
214 //if (1) { goto OPENING; } 220 //if (1) { goto OPENING; }
215 } 221 }
216 222
217 /*処理をいったんifの外へ。これを見る限り、キー入力自体はokぽい 223 /*処理をいったんifの外へ。これを見る限り、キー入力自体はokぽい
218 printf("pad.st = %d\n",pad.st); 224 printf("pad.st = %d\n",pad.st);
219 if (pad.st != 1) { goto OPENING; } 225 if (pad.st != 1) { goto OPENING; }
220 */ 226 */
227
221 228
222 set_schedule_assumption(sche_game_select_car); 229 set_schedule_assumption(sche_game_select_car);
223 230
224 OPENING: 231 OPENING:
225 return; 232 return;
334 void 341 void
335 sche_game_main_init(Game *game) 342 sche_game_main_init(Game *game)
336 { 343 {
337 printf("sche_game_main_init()\n"); 344 printf("sche_game_main_init()\n");
338 if (!game->jiki){ 345 if (!game->jiki){
339 printf("sche_game_main_init()__________\n");
340 play_init(game); 346 play_init(game);
341 } 347 }
342 348
343 RUNNIG=0; 349 RUNNIG=0;
344 350
418 if (pad.st == 1) { 424 if (pad.st == 1) {
419 set_schedule_assumption(sche_game_main_pause); 425 set_schedule_assumption(sche_game_main_pause);
420 } 426 }
421 427
422 //S-dandy の obj てきな 428 //S-dandy の obj てきな
423
424 } 429 }
425 430
426 431
427 void 432 void
428 sche_game_main_pause(Game *game) 433 sche_game_main_pause(Game *game)
541 sjoy_poll(); 546 sjoy_poll();
542 547
543 ps2util_sprite_Draw(); 548 ps2util_sprite_Draw();
544 gSprite_Draw_Reset(); 549 gSprite_Draw_Reset();
545 gFont_Draw_Reset(); 550 gFont_Draw_Reset();
546 } 551
552 // ここにgSprite_Init()があるのって良いのかな?
553 // gSprite_Init();
554 }