Exemple #1
0
int bigkarnk_vh_start(void)
{
	int i;

	pant[0] = tilemap_create(get_tile_info_gaelco_screen0,tilemap_scan_rows,TILEMAP_SPLIT,16,16,32,32);
	pant[1] = tilemap_create(get_tile_info_gaelco_screen1,tilemap_scan_rows,TILEMAP_SPLIT,16,16,32,32);

	if (!pant[0] || !pant[1])
		return 1;

	tilemap_set_transparent_pen(pant[0],0);
	tilemap_set_transparent_pen(pant[1],0);

	tilemap_set_transmask(pant[0],0,0xff01,0x00fe); /* pens 1-7 opaque, pens 0, 8-15 transparent */
	tilemap_set_transmask(pant[1],0,0xff01,0x00fe); /* pens 1-7 opaque, pens 0, 8-15 transparent */

	for (i = 0; i < 5; i++){
		sprite_table[i] = malloc(512*sizeof(int));
		if (!sprite_table[i]){
			gaelco_vh_stop();
			return 1;
		}
	}

	return 0;
}
Exemple #2
0
static void wgp_core_vh_start( running_machine *machine, int piv_xoffs, int piv_yoffs )
{
	wgp_state *state = machine->driver_data<wgp_state>();

	state->piv_tilemap[0] = tilemap_create(machine, get_piv0_tile_info, tilemap_scan_rows, 16, 16, 64, 64);
	state->piv_tilemap[1] = tilemap_create(machine, get_piv1_tile_info, tilemap_scan_rows, 16, 16, 64, 64);
	state->piv_tilemap[2] = tilemap_create(machine, get_piv2_tile_info, tilemap_scan_rows, 16, 16, 64, 64);

	state->piv_xoffs = piv_xoffs;
	state->piv_yoffs = piv_yoffs;

	tilemap_set_transparent_pen(state->piv_tilemap[0], 0);
	tilemap_set_transparent_pen(state->piv_tilemap[1], 0);
	tilemap_set_transparent_pen(state->piv_tilemap[2], 0);

	/* flipscreen n/a */
	tilemap_set_scrolldx(state->piv_tilemap[0], -piv_xoffs, 0);
	tilemap_set_scrolldx(state->piv_tilemap[1], -piv_xoffs, 0);
	tilemap_set_scrolldx(state->piv_tilemap[2], -piv_xoffs, 0);
	tilemap_set_scrolldy(state->piv_tilemap[0], -piv_yoffs, 0);
	tilemap_set_scrolldy(state->piv_tilemap[1], -piv_yoffs, 0);
	tilemap_set_scrolldy(state->piv_tilemap[2], -piv_yoffs, 0);

	/* We don't need tilemap_set_scroll_rows, as the custom draw routine applies rowscroll manually */
	tc0100scn_set_colbanks(state->tc0100scn, 0x80, 0xc0, 0x40);

	state->save_item(NAME(state->piv_ctrl_reg));
	state->save_item(NAME(state->rotate_ctrl));
	state->save_item(NAME(state->piv_zoom));
	state->save_item(NAME(state->piv_scrollx));
	state->save_item(NAME(state->piv_scrolly));
}
Exemple #3
0
static void wgp_core_vh_start(running_machine *machine, int x_offs,int y_offs,int piv_xoffs,int piv_yoffs)
{
	wgp_piv_tilemap[0] = tilemap_create(get_piv0_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,16,16,64,64);
	wgp_piv_tilemap[1] = tilemap_create(get_piv1_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,16,16,64,64);
	wgp_piv_tilemap[2] = tilemap_create(get_piv2_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,16,16,64,64);

	TC0100SCN_vh_start(machine,1,TC0100SCN_GFX_NUM,x_offs,y_offs,0,0,0,0,0);

	if (has_TC0110PCR())
		TC0110PCR_vh_start();

	wgp_piv_xoffs = piv_xoffs;
	wgp_piv_yoffs = piv_yoffs;

	tilemap_set_transparent_pen( wgp_piv_tilemap[0],0 );
	tilemap_set_transparent_pen( wgp_piv_tilemap[1],0 );
	tilemap_set_transparent_pen( wgp_piv_tilemap[2],0 );

	/* flipscreen n/a */
	tilemap_set_scrolldx( wgp_piv_tilemap[0],-piv_xoffs,0 );
	tilemap_set_scrolldx( wgp_piv_tilemap[1],-piv_xoffs,0 );
	tilemap_set_scrolldx( wgp_piv_tilemap[2],-piv_xoffs,0 );
	tilemap_set_scrolldy( wgp_piv_tilemap[0],-piv_yoffs,0 );
	tilemap_set_scrolldy( wgp_piv_tilemap[1],-piv_yoffs,0 );
	tilemap_set_scrolldy( wgp_piv_tilemap[2],-piv_yoffs,0 );

	/* We don't need tilemap_set_scroll_rows, as the custom draw routine
       applies rowscroll manually */

	TC0100SCN_set_colbanks(0x80,0xc0,0x40);

	/* colors from saved states are often screwy (and this doesn't help...) */
	state_save_register_func_postload(dirty_piv_tilemaps);
}
Exemple #4
0
static VIDEO_START(pturn)
{
	pturn_fgmap = tilemap_create(get_pturn_tile_info,tilemap_scan_rows,8, 8,32,32);
	tilemap_set_transparent_pen(pturn_fgmap,0);
	pturn_bgmap = tilemap_create(get_pturn_bg_tile_info,tilemap_scan_rows,8, 8,32,32*8);
	tilemap_set_transparent_pen(pturn_bgmap,0);
}
Exemple #5
0
static VIDEO_START(quizpun2)
{
	bg_tmap = tilemap_create(	machine, get_bg_tile_info, tilemap_scan_rows,	8,16, 0x20,0x20	);
	fg_tmap = tilemap_create(	machine, get_fg_tile_info, tilemap_scan_rows,	8,16, 0x20,0x20	);

	tilemap_set_transparent_pen(bg_tmap, 0);
	tilemap_set_transparent_pen(fg_tmap, 0);
}
Exemple #6
0
static VIDEO_START(pturn)
{
	pturn_state *state = machine.driver_data<pturn_state>();
	state->m_fgmap = tilemap_create(machine, get_pturn_tile_info,tilemap_scan_rows,8, 8,32,32);
	tilemap_set_transparent_pen(state->m_fgmap,0);
	state->m_bgmap = tilemap_create(machine, get_pturn_bg_tile_info,tilemap_scan_rows,8, 8,32,32*8);
	tilemap_set_transparent_pen(state->m_bgmap,0);
}
Exemple #7
0
static void twincobr_create_tilemaps(running_machine *machine)
{
	bg_tilemap = tilemap_create(machine, get_bg_tile_info,tilemap_scan_rows,8,8,64,64);
	fg_tilemap = tilemap_create(machine, get_fg_tile_info,tilemap_scan_rows,8,8,64,64);
	tx_tilemap = tilemap_create(machine, get_tx_tile_info,tilemap_scan_rows,8,8,64,32);

	tilemap_set_transparent_pen(fg_tilemap,0);
	tilemap_set_transparent_pen(tx_tilemap,0);
}
Exemple #8
0
static VIDEO_START( pkscramble )
{
	bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN,      8, 8,32,32);
	md_tilemap = tilemap_create(get_md_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8,32,32);
	fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8,32,32);

	tilemap_set_transparent_pen(md_tilemap,15);
	tilemap_set_transparent_pen(fg_tilemap,15);
}
Exemple #9
0
static VIDEO_START(bestleag)
{
	tx_tilemap = tilemap_create(machine, get_tx_tile_info,tilemap_scan_cols,8,8,256, 32);
	bg_tilemap = tilemap_create(machine, get_bg_tile_info,bsb_bg_scan,16,16,128, 64);
	fg_tilemap = tilemap_create(machine, get_fg_tile_info,bsb_bg_scan,16,16,128, 64);

	tilemap_set_transparent_pen(tx_tilemap,15);
	tilemap_set_transparent_pen(fg_tilemap,15);
}
Exemple #10
0
static void twincobr_create_tilemaps(void)
{
	bg_tilemap = tilemap_create(get_bg_tile_info,tilemap_scan_rows,8,8,64,64);
	fg_tilemap = tilemap_create(get_fg_tile_info,tilemap_scan_rows,8,8,64,64);
	tx_tilemap = tilemap_create(get_tx_tile_info,tilemap_scan_rows,8,8,64,32);

	tilemap_set_transparent_pen(fg_tilemap,0);
	tilemap_set_transparent_pen(tx_tilemap,0);
}
static VIDEO_START(quizpun2)
{
	quizpun2_state *state = machine.driver_data<quizpun2_state>();
	state->m_bg_tmap = tilemap_create(	machine, get_bg_tile_info, tilemap_scan_rows,	8,16, 0x20,0x20	);
	state->m_fg_tmap = tilemap_create(	machine, get_fg_tile_info, tilemap_scan_rows,	8,16, 0x20,0x20	);

	tilemap_set_transparent_pen(state->m_bg_tmap, 0);
	tilemap_set_transparent_pen(state->m_fg_tmap, 0);
}
Exemple #12
0
static VIDEO_START(bestleag)
{
	bestleag_state *state = machine.driver_data<bestleag_state>();
	state->m_tx_tilemap = tilemap_create(machine, get_tx_tile_info,tilemap_scan_cols,8,8,256, 32);
	state->m_bg_tilemap = tilemap_create(machine, get_bg_tile_info,bsb_bg_scan,16,16,128, 64);
	state->m_fg_tilemap = tilemap_create(machine, get_fg_tile_info,bsb_bg_scan,16,16,128, 64);

	tilemap_set_transparent_pen(state->m_tx_tilemap,15);
	tilemap_set_transparent_pen(state->m_fg_tilemap,15);
}
static VIDEO_START(mil4000)
{
	mil4000_state *state = machine.driver_data<mil4000_state>();
	state->m_sc0_tilemap = tilemap_create(machine, get_sc0_tile_info,tilemap_scan_rows,8,8,64,64);
	state->m_sc1_tilemap = tilemap_create(machine, get_sc1_tile_info,tilemap_scan_rows,8,8,64,64);
	state->m_sc2_tilemap = tilemap_create(machine, get_sc2_tile_info,tilemap_scan_rows,8,8,64,64);
	state->m_sc3_tilemap = tilemap_create(machine, get_sc3_tile_info,tilemap_scan_rows,8,8,64,64);

	tilemap_set_transparent_pen(state->m_sc1_tilemap,0);
	tilemap_set_transparent_pen(state->m_sc2_tilemap,0);
	tilemap_set_transparent_pen(state->m_sc3_tilemap,0);
}
Exemple #14
0
static void toaplan1_create_tilemaps(running_machine *machine)
{
	pf1_tilemap = tilemap_create(machine, get_pf1_tile_info,tilemap_scan_rows,8,8,64,64);
	pf2_tilemap = tilemap_create(machine, get_pf2_tile_info,tilemap_scan_rows,8,8,64,64);
	pf3_tilemap = tilemap_create(machine, get_pf3_tile_info,tilemap_scan_rows,8,8,64,64);
	pf4_tilemap = tilemap_create(machine, get_pf4_tile_info,tilemap_scan_rows,8,8,64,64);

	tilemap_set_transparent_pen(pf1_tilemap,0);
	tilemap_set_transparent_pen(pf2_tilemap,0);
	tilemap_set_transparent_pen(pf3_tilemap,0);
	tilemap_set_transparent_pen(pf4_tilemap,0);
}
Exemple #15
0
int cabal_vh_start( void )
{
	background_layer = tilemap_create(get_back_tile_info,tilemap_scan_rows,TILEMAP_TRANSPARENT,16,16,16,16);
	text_layer       = tilemap_create(get_text_tile_info,tilemap_scan_rows,TILEMAP_TRANSPARENT,  8,8,32,32);

	if (!text_layer || !background_layer ) return 1;

	tilemap_set_transparent_pen(text_layer,3);
	tilemap_set_transparent_pen(background_layer,15);

	return 0;
}
Exemple #16
0
static void toaplan1_create_tilemaps(void)
{
	pf1_tilemap = tilemap_create(get_pf1_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,64,64);
	pf2_tilemap = tilemap_create(get_pf2_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,64,64);
	pf3_tilemap = tilemap_create(get_pf3_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,64,64);
	pf4_tilemap = tilemap_create(get_pf4_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,64,64);

	tilemap_set_transparent_pen(pf1_tilemap,0);
	tilemap_set_transparent_pen(pf2_tilemap,0);
	tilemap_set_transparent_pen(pf3_tilemap,0);
	tilemap_set_transparent_pen(pf4_tilemap,0);
}
Exemple #17
0
static VIDEO_START( umipoker )
{
	umipoker_state *state = machine.driver_data<umipoker_state>();

	state->m_tilemap_0 = tilemap_create(machine, get_tile_info_0,tilemap_scan_rows,8,8,64,32);
	state->m_tilemap_1 = tilemap_create(machine, get_tile_info_1,tilemap_scan_rows,8,8,64,32);
	state->m_tilemap_2 = tilemap_create(machine, get_tile_info_2,tilemap_scan_rows,8,8,64,32);
	state->m_tilemap_3 = tilemap_create(machine, get_tile_info_3,tilemap_scan_rows,8,8,64,32);

	tilemap_set_transparent_pen(state->m_tilemap_0,0);
	tilemap_set_transparent_pen(state->m_tilemap_1,0);
	tilemap_set_transparent_pen(state->m_tilemap_2,0);
	tilemap_set_transparent_pen(state->m_tilemap_3,0);

}
Exemple #18
0
int raiden_vh_start(void)
{
	bg_layer = tilemap_create(get_back_tile_info,tilemap_scan_cols,TILEMAP_OPAQUE,     16,16,32,32);
	fg_layer = tilemap_create(get_fore_tile_info,tilemap_scan_cols,TILEMAP_TRANSPARENT,16,16,32,32);
	tx_layer = tilemap_create(get_text_tile_info,tilemap_scan_cols,TILEMAP_TRANSPARENT,8,8,32,32);
	ALTERNATE=0;

	if (!bg_layer || !fg_layer || !tx_layer)
		return 1;

	tilemap_set_transparent_pen(fg_layer,15);
	tilemap_set_transparent_pen(tx_layer,15);

	return 0;
}
Exemple #19
0
static VIDEO_START(dunhuang)
{
	dunhuang_state *state = machine.driver_data<dunhuang_state>();
	state->m_tmap = tilemap_create(machine, get_tile_info, tilemap_scan_rows, 8,8, 0x40,0x20);
	state->m_tmap2 = tilemap_create(machine, get_tile_info2, tilemap_scan_rows, 8,32, 0x40,0x8);

	tilemap_set_transparent_pen(state->m_tmap, 0);
	tilemap_set_transparent_pen(state->m_tmap2, 0);

	state->save_item(NAME(state->m_videoram));
	state->save_item(NAME(state->m_colorram));
	state->save_item(NAME(state->m_videoram2));
	state->save_item(NAME(state->m_colorram2));
	state->save_item(NAME(state->m_paldata));
}
Exemple #20
0
static VIDEO_START( good )
{
    good_state *state = (good_state *)machine->driver_data;
    state->bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows, 16, 16, 32, 32);
    state->fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows, 16, 16, 32, 32);
    tilemap_set_transparent_pen(state->fg_tilemap, 0xf);
}
Exemple #21
0
int splash_vh_start(void)
{
	screen[0] = tilemap_create(get_tile_info_splash_screen0,tilemap_scan_rows,TILEMAP_TRANSPARENT, 8, 8,64,32);
	screen[1] = tilemap_create(get_tile_info_splash_screen1,tilemap_scan_rows,TILEMAP_TRANSPARENT,16,16,32,32);
	screen2 = bitmap_alloc (512, 256);

	if (!screen[0] || !screen[1] || !screen2)
		return 1;

	tilemap_set_transparent_pen(screen[0],0);
	tilemap_set_transparent_pen(screen[1],0);

	tilemap_set_scrollx(screen[0], 0, 4);

	return 0;
}
Exemple #22
0
static VIDEO_START(chanbara )
{
	chanbara_state *state = machine->driver_data<chanbara_state>();
	state->bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows,8, 8, 32, 32);
	state->bg2_tilemap = tilemap_create(machine, get_bg2_tile_info, tilemap_scan_rows,16, 16, 16, 32);
	tilemap_set_transparent_pen(state->bg_tilemap, 0);
}
Exemple #23
0
static void gottlieb_video_start_common(void)
{
	bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows,
		 8, 8, 32, 32);

	tilemap_set_transparent_pen(bg_tilemap, 0);
}
Exemple #24
0
static VIDEO_START( cowrace )
{
	tmap = tilemap_create(	get_tile_info, tilemap_scan_rows,
							TILEMAP_TYPE_PEN, 8,8, 0x20,0x20	);

	tilemap_set_transparent_pen(tmap, 0);
}
Exemple #25
0
static void init_common( running_machine *machine )
{
	fromance_state *state = machine->driver_data<fromance_state>();

	/* allocate local videoram */
	state->local_videoram[0] = auto_alloc_array(machine, UINT8, 0x1000 * 3);
	state->local_videoram[1] = auto_alloc_array(machine, UINT8, 0x1000 * 3);

	/* allocate local palette RAM */
	state->local_paletteram = auto_alloc_array(machine, UINT8, 0x800 * 2);

	/* configure tilemaps */
	tilemap_set_transparent_pen(state->fg_tilemap, 15);

	/* reset the timer */
	state->crtc_timer = machine->scheduler().timer_alloc(FUNC(crtc_interrupt_gen));

	/* state save */
	state->save_item(NAME(state->selected_videoram));
	state->save_pointer(NAME(state->local_videoram[0]), 0x1000 * 3);
	state->save_pointer(NAME(state->local_videoram[1]), 0x1000 * 3);
	state->save_item(NAME(state->selected_paletteram));
	state->save_item(NAME(state->scrollx));
	state->save_item(NAME(state->scrolly));
	state->save_item(NAME(state->gfxreg));
	state->save_item(NAME(state->flipscreen));
	state->save_item(NAME(state->flipscreen_old));
	state->save_item(NAME(state->scrollx_ofs));
	state->save_item(NAME(state->scrolly_ofs));
	state->save_item(NAME(state->crtc_register));
	state->save_item(NAME(state->crtc_data));
	state->save_pointer(NAME(state->local_paletteram), 0x800 * 2);
}
Exemple #26
0
static VIDEO_START( koftball )
{
	tilemap_1 = tilemap_create(machine, get_t1_tile_info,tilemap_scan_rows,8,8,64,32);
	tilemap_2 = tilemap_create(machine, get_t2_tile_info,tilemap_scan_rows,8,8,64,32);

	tilemap_set_transparent_pen(tilemap_1,0);
}
Exemple #27
0
static void create_tilemaps(running_machine *machine)
{
	int layer, i;

	for (layer = 0; layer < 3; layer++)
	{
		/* 16x16 tilemaps */
		megasys1_tilemap[layer][0][0] = tilemap_create(machine, megasys1_get_scroll_tile_info_16x16, megasys1_scan_16x16,
								 8,8, TILES_PER_PAGE_X * 16, TILES_PER_PAGE_Y * 2);
		megasys1_tilemap[layer][0][1] = tilemap_create(machine, megasys1_get_scroll_tile_info_16x16, megasys1_scan_16x16,
								 8,8, TILES_PER_PAGE_X * 8, TILES_PER_PAGE_Y * 4);
		megasys1_tilemap[layer][0][2] = tilemap_create(machine, megasys1_get_scroll_tile_info_16x16, megasys1_scan_16x16,
								 8,8, TILES_PER_PAGE_X * 4, TILES_PER_PAGE_Y * 8);
		megasys1_tilemap[layer][0][3] = tilemap_create(machine, megasys1_get_scroll_tile_info_16x16, megasys1_scan_16x16,
								 8,8, TILES_PER_PAGE_X * 2, TILES_PER_PAGE_Y * 16);

		/* 8x8 tilemaps */
		megasys1_tilemap[layer][1][0] = tilemap_create(machine, megasys1_get_scroll_tile_info_8x8, megasys1_scan_8x8,
								 8,8, TILES_PER_PAGE_X * 8, TILES_PER_PAGE_Y * 1);
		megasys1_tilemap[layer][1][1] = tilemap_create(machine, megasys1_get_scroll_tile_info_8x8, megasys1_scan_8x8,
								 8,8, TILES_PER_PAGE_X * 4, TILES_PER_PAGE_Y * 2);
		megasys1_tilemap[layer][1][2] = tilemap_create(machine, megasys1_get_scroll_tile_info_8x8, megasys1_scan_8x8,
								 8,8, TILES_PER_PAGE_X * 4, TILES_PER_PAGE_Y * 2);
		megasys1_tilemap[layer][1][3] = tilemap_create(machine, megasys1_get_scroll_tile_info_8x8, megasys1_scan_8x8,
								 8,8, TILES_PER_PAGE_X * 2, TILES_PER_PAGE_Y * 4);

		/* set user data and transparency */
		for (i = 0; i < 8; i++)
		{
			tilemap_set_user_data(megasys1_tilemap[layer][i/4][i%4], (void *)(FPTR)layer);
			tilemap_set_transparent_pen(megasys1_tilemap[layer][i/4][i%4], 15);
		}
	}
}
Exemple #28
0
static VIDEO_START( drtomy )
{
	tilemap_bg = tilemap_create(machine, get_tile_info_bg,tilemap_scan_rows,16,16,32,32);
	tilemap_fg = tilemap_create(machine, get_tile_info_fg,tilemap_scan_rows,16,16,32,32);

	tilemap_set_transparent_pen(tilemap_fg,0);
}
Exemple #29
0
static VIDEO_START( ppmast93 )
{
	ppmast93_bg_tilemap = tilemap_create(get_ppmast93_bg_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,32, 32);
	ppmast93_fg_tilemap = tilemap_create(get_ppmast93_fg_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,32, 32);

	tilemap_set_transparent_pen(ppmast93_fg_tilemap,0);
}
Exemple #30
0
static VIDEO_START(cabaret)
{
	bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows,	8,  32,	64, 8);
	fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows,	8,  8,	64, 32);
	tilemap_set_transparent_pen(fg_tilemap, 0);
	tilemap_set_scroll_cols(bg_tilemap, 64);
}