VIDEO_START_MEMBER(atarigt_state,atarigt) { pen_t *substitute_pens; int i, width, height; /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x30); /* allocate temp bitmaps */ width = m_screen->width(); height = m_screen->height(); m_pf_bitmap = auto_bitmap_ind16_alloc(machine(), width, height); m_an_bitmap = auto_bitmap_ind16_alloc(machine(), width, height); /* map pens 1:1 */ substitute_pens = auto_alloc_array(machine(), pen_t, 65536); for (i = 0; i < machine().total_colors(); i++) substitute_pens[i] = i; machine().pens = substitute_pens; /* reset statics */ memset(m_colorram, 0, 0x80000); /* save states */ save_item(NAME(m_playfield_tile_bank)); save_item(NAME(m_playfield_color_bank)); save_item(NAME(m_playfield_xscroll)); save_item(NAME(m_playfield_yscroll)); save_item(NAME(m_tram_checksum)); save_item(NAME(m_expanded_mram)); }
VIDEO_START_MEMBER(atarig42_state,atarig42) { /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x30); /* save states */ save_item(NAME(m_current_control)); save_item(NAME(m_playfield_tile_bank)); save_item(NAME(m_playfield_color_bank)); save_item(NAME(m_playfield_xscroll)); save_item(NAME(m_playfield_yscroll)); }
VIDEO_START_MEMBER(atarig1_state,atarig1) { /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x10); /* reset statics */ m_pfscroll_xoffset = m_is_pitfight ? 2 : 0; /* state saving */ save_item(NAME(m_current_control)); save_item(NAME(m_playfield_tile_bank)); save_item(NAME(m_playfield_xscroll)); save_item(NAME(m_playfield_yscroll)); }
VIDEO_START_MEMBER(atarigt_state,atarigt) { /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x30); /* allocate temp bitmaps */ m_screen->register_screen_bitmap(m_pf_bitmap); m_screen->register_screen_bitmap(m_an_bitmap); /* reset statics */ memset(m_colorram, 0, 0x80000); /* save states */ save_item(NAME(m_playfield_tile_bank)); save_item(NAME(m_playfield_color_bank)); save_item(NAME(m_playfield_xscroll)); save_item(NAME(m_playfield_yscroll)); save_item(NAME(m_tram_checksum)); save_item(NAME(m_expanded_mram)); }
VIDEO_START_MEMBER(atarig42_state,atarig42) { /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x30); /* initialize the playfield */ m_playfield_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(atarig42_state::get_playfield_tile_info),this), tilemap_mapper_delegate(FUNC(atarig42_state::atarig42_playfield_scan),this), 8,8, 128,64); /* initialize the motion objects */ m_rle = machine().device("rle"); /* initialize the alphanumerics */ m_alpha_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(atarig42_state::get_alpha_tile_info),this), TILEMAP_SCAN_ROWS, 8,8, 64,32); m_alpha_tilemap->set_transparent_pen(0); /* save states */ save_item(NAME(m_current_control)); save_item(NAME(m_playfield_tile_bank)); save_item(NAME(m_playfield_color_bank)); save_item(NAME(m_playfield_xscroll)); save_item(NAME(m_playfield_yscroll)); }
VIDEO_START_MEMBER(atarig1_state,atarig1) { /* blend the playfields and free the temporary one */ blend_gfx(0, 2, 0x0f, 0x10); /* initialize the playfield */ m_playfield_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(atarig1_state::get_playfield_tile_info),this), TILEMAP_SCAN_ROWS, 8,8, 64,64); /* initialize the motion objects */ m_rle = machine().device("rle"); /* initialize the alphanumerics */ m_alpha_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(atarig1_state::get_alpha_tile_info),this), TILEMAP_SCAN_ROWS, 8,8, 64,32); m_alpha_tilemap->set_transparent_pen(0); /* reset statics */ m_pfscroll_xoffset = m_is_pitfight ? 2 : 0; /* state saving */ save_item(NAME(m_current_control)); save_item(NAME(m_playfield_tile_bank)); save_item(NAME(m_playfield_xscroll)); save_item(NAME(m_playfield_yscroll)); }