view game.c @ 90:8edae89a3877

compile on Mac OS X
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 19 May 2011 16:41:21 +0900
parents 3e7db5ef4691
children 0b65ca27f113
line wrap: on
line source

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
//#include "libps2.h"
//#include "ps2util.h"
//#include "controler.h"
//#include "linda/lindaapi.h"
#include "car.h"
#include "game.h"
#include "schedule.h"

/* controler.c */
//extern Bool padCheck();
/* linda.c */
#ifdef LINDA
//extern int linda_init();
#else
#define linda_init 1
#endif

void
game_main()
{

    Game *game;
    bool flg = true;
#ifdef LINDA
    game->play_id = linda_init();
#endif

    while (1) {
        flg = true;//padCheck();
	if (flg == false) {
	    break;
	}
	schedule(game);

#ifdef LINDA
	psx_sync_n();
#endif
    }
}


//ceriumのmainルーチンに直す。