static void cb_shoot(void *data) { Epplet_remove_timer("SHOOT_TIMER"); if (opt.delay < 1) do_shot(NULL); else if (!strcmp(opt.grabber, "import")) Epplet_timer(do_shot, NULL, opt.delay, "SHOOT_TIMER"); else do_shot(NULL); return; data = NULL; }
int main(void) { unsigned char i; /* a counter */ init_new_game(); /* initialize dots ... */ while (true) /* do forever... the following */ { start_one_vectrex_round(); /* start vectrex round */ intensity(MAX_BRIGHTNESS); /* set intensity of vector beam... */ for (i=0; i < SHOTS; i++) /* and process all dots */ { do_shot(¤t_shots[i]); /* with this function ... */ } } }