/*********************************************************** * * systemCheck * ***********************************************************/ void TTUI::systemCheck() { if(trapActive_ == true) { if(triggers[currentTrigger]->getStop() == true) //stop the UI if the trigger requests a stop { initStart(millis()); } } resetCheck(); }
int startGame(){ configAll(); BITMAP * nave = load_bitmap("img/35x45/nave.bmp",NULL); BITMAP * alien = load_bitmap("img/35x45/alien.bmp", NULL); BITMAP * gun = load_bitmap("img/35x45/gun.bmp", NULL); BITMAP * init = load_bitmap("img/start.bmp", NULL); BITMAP * bg = load_bitmap("img/bartop.bmp", NULL); BITMAP * buffer = create_bitmap(SCREEN_W,SCREEN_H); SAMPLE * sound = load_wav("wav/tiro.wav"); SAMPLE * music = load_sample("wav/laserHit.wav"); initStart(buffer,init); install_int_ex(countXa,SECS_TO_TIMER(1)); install_int_ex(countGun,MSEC_TO_TIMER(1)); gameControll(nave,buffer,alien,gun,bg,sound,music); destroyAll(nave,buffer,alien,gun,init,bg,sound,music); return 0; }
void sendInit() { initStart("Send"); modulSend = MODUL_ENABLE; initDone(); }