view game.cc @ 110:8a525ec378fc

bool.h change stdbool.h
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 09 Jun 2011 01:45:25 +0900
parents 165b4d902ca4
children ed702e49cc6c
line wrap: on
line source

/* game.c */

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

#include "schedule.h"


/* 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) {
    /*
      引数の数を変更したので、
      エラーが出ないように一時的に削除
      たぶん、後で新しく新調するはずなので・・・
      代わりに、お試しkeybordを入れてみる。
    */
    //flg = padCheck();
    flg = keybord();
    
    if (flg == false) {
      break;
    }
    schedule(&game);
    
#ifdef LINDA
    psx_sync_n();
#endif
  }
}

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