diff options
Diffstat (limited to 'src/mame/drivers/bnstars.cpp')
-rw-r--r-- | src/mame/drivers/bnstars.cpp | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/src/mame/drivers/bnstars.cpp b/src/mame/drivers/bnstars.cpp index 62be3100cf4..ebf7c33c849 100644 --- a/src/mame/drivers/bnstars.cpp +++ b/src/mame/drivers/bnstars.cpp @@ -8,7 +8,7 @@ Single board version with Dual Screen output (MS32 version also exists) for the time being most of this driver is copied -from ms32.c, with some adjustments for dual screen. +from ms32.cpp, with some adjustments for dual screen. Main PCB @@ -702,7 +702,41 @@ INPUT_PORTS_END /* sprites are contained in 256x256 "tiles" */ -static GFXLAYOUT_RAW( spritelayout, 256, 256, 256*8, 256*256*8 ) +static const uint32_t sprite_xoffset[256] = +{ + STEP8(8*8*8*0, 8), STEP8(8*8*8*1, 8), STEP8(8*8*8*2, 8), STEP8(8*8*8*3, 8), + STEP8(8*8*8*4, 8), STEP8(8*8*8*5, 8), STEP8(8*8*8*6, 8), STEP8(8*8*8*7, 8), + STEP8(8*8*8*8, 8), STEP8(8*8*8*9, 8), STEP8(8*8*8*10, 8), STEP8(8*8*8*11, 8), + STEP8(8*8*8*12, 8), STEP8(8*8*8*13, 8), STEP8(8*8*8*14, 8), STEP8(8*8*8*15, 8), + STEP8(8*8*8*16, 8), STEP8(8*8*8*17, 8), STEP8(8*8*8*18, 8), STEP8(8*8*8*19, 8), + STEP8(8*8*8*20, 8), STEP8(8*8*8*21, 8), STEP8(8*8*8*22, 8), STEP8(8*8*8*23, 8), + STEP8(8*8*8*24, 8), STEP8(8*8*8*25, 8), STEP8(8*8*8*26, 8), STEP8(8*8*8*27, 8), + STEP8(8*8*8*28, 8), STEP8(8*8*8*29, 8), STEP8(8*8*8*30, 8), STEP8(8*8*8*31, 8) +}; +static const uint32_t sprite_yoffset[256] = +{ + STEP8(8*8*8*0, 8*8), STEP8(8*8*8*32, 8*8), STEP8(8*8*8*64, 8*8), STEP8(8*8*8*96, 8*8), + STEP8(8*8*8*128,8*8), STEP8(8*8*8*160,8*8), STEP8(8*8*8*192,8*8), STEP8(8*8*8*224,8*8), + STEP8(8*8*8*256,8*8), STEP8(8*8*8*288,8*8), STEP8(8*8*8*320,8*8), STEP8(8*8*8*352,8*8), + STEP8(8*8*8*384,8*8), STEP8(8*8*8*416,8*8), STEP8(8*8*8*448,8*8), STEP8(8*8*8*480,8*8), + STEP8(8*8*8*512,8*8), STEP8(8*8*8*544,8*8), STEP8(8*8*8*576,8*8), STEP8(8*8*8*608,8*8), + STEP8(8*8*8*640,8*8), STEP8(8*8*8*672,8*8), STEP8(8*8*8*704,8*8), STEP8(8*8*8*736,8*8), + STEP8(8*8*8*768,8*8), STEP8(8*8*8*800,8*8), STEP8(8*8*8*832,8*8), STEP8(8*8*8*864,8*8), + STEP8(8*8*8*896,8*8), STEP8(8*8*8*928,8*8), STEP8(8*8*8*960,8*8), STEP8(8*8*8*992,8*8) +}; +static const gfx_layout spritelayout = +{ + 256, 256, + RGN_FRAC(1,1), + 8, + { STEP8(0,1) }, + EXTENDED_XOFFS, + EXTENDED_YOFFS, + 256*256*8, + sprite_xoffset, + sprite_yoffset +}; + static GFXLAYOUT_RAW( bglayout, 16, 16, 16*8, 16*16*8 ) static GFXLAYOUT_RAW( txlayout, 8, 8, 8*8, 8*8*8 ) @@ -932,8 +966,6 @@ ROM_END /* SS92046_01: bbbxing, f1superb, tetrisp, hayaosi1 */ void bnstars_state::init_bnstars() { - ms32_rearrange_sprites(machine(), "gfx1"); - decrypt_ms32_tx(machine(), 0x00020,0x7e, "gfx5"); decrypt_ms32_bg(machine(), 0x00001,0x9b, "gfx4"); decrypt_ms32_tx(machine(), 0x00020,0x7e, "gfx7"); |