Exemplo n.º 1
0
Arquivo: datfli.c Projeto: ifilex/SRC
/* handles double-clicking on a FLIC object in the grabber */
static int view_fli(DATAFILE *dat)
{
   show_mouse(NULL);
   clear_to_color(screen, gui_mg_color);
   play_memory_fli(dat->dat, screen, TRUE, fli_stopper);
   do {
   } while (mouse_b);
   clear_keybuf();
   set_pallete(datedit_current_palette);
   show_mouse(screen);
   return D_REDRAW;
}
Exemplo n.º 2
0
static void intro_screen(void)
{
   BITMAP *bmp;
   play_sample(data[INTRO_SPL].dat, 255, 128, 1000, FALSE);

   bmp =
       create_sub_bitmap(screen, SCREEN_W / 2 - 160, SCREEN_H / 2 - 100,
                         320, 200);
   play_memory_fli(data[INTRO_ANIM].dat, bmp, FALSE, NULL);
   destroy_bitmap(bmp);

   rest(1000);
   fade_out(1);
}
Exemplo n.º 3
0
//play intro movie etc
void CGame::PlayIntro() {   
	
	//play FLC from memory
	play_memory_fli(data[ZANIMATION].dat,screen, 0, NULL);

	// display flashing prompt

	text_mode(-1); //text with transparent background

	//crude by effective blinking text :)
	while (!keypressed()) {
		
		textout_centre(screen,font,"INSERT COIN(S)..",320,400,makecol(0,0,0));
		rest(600);
		textout_centre(screen,font,"INSERT COIN(S)..",320,400,makecol(206,206,90)); 
		rest(300);
	}

	clear_keybuf();
	
}