trunk/src/mame/drivers/rpunch.c
| r30969 | r30970 | |
| 495 | 495 | MCFG_PALETTE_ADD("palette", 1024) |
| 496 | 496 | MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) |
| 497 | 497 | |
| 498 | MCFG_VIDEO_START_OVERRIDE(rpunch_state,rpunch) |
| 498 | 499 | |
| 499 | 500 | /* sound hardware */ |
| 500 | 501 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r30969 | r30970 | |
| 508 | 509 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 509 | 510 | MACHINE_CONFIG_END |
| 510 | 511 | |
| 512 | static MACHINE_CONFIG_DERIVED( svolley, rpunch ) |
| 513 | MCFG_VIDEO_START_OVERRIDE(rpunch_state,svolley) |
| 514 | MACHINE_CONFIG_END |
| 511 | 515 | |
| 516 | |
| 512 | 517 | // c+p of above for now, bootleg hw, things need verifying |
| 513 | 518 | static MACHINE_CONFIG_START( svolleybl, rpunch_state ) |
| 514 | 519 | |
| r30969 | r30970 | |
| 532 | 537 | MCFG_PALETTE_ADD("palette", 1024) |
| 533 | 538 | MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) |
| 534 | 539 | |
| 540 | MCFG_VIDEO_START_OVERRIDE(rpunch_state,rpunch) |
| 535 | 541 | |
| 536 | 542 | /* sound hardware */ |
| 543 | |
| 537 | 544 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 538 | 545 | |
| 539 | 546 | MCFG_YM2151_ADD("ymsnd", MASTER_CLOCK/4) |
| r30969 | r30970 | |
| 809 | 816 | |
| 810 | 817 | GAME( 1987, rabiolep, 0, rpunch, rabiolep, rpunch_state, rabiolep, ROT0, "V-System Co.", "Rabio Lepus (Japan)", GAME_NO_COCKTAIL ) |
| 811 | 818 | GAME( 1987, rpunch, rabiolep, rpunch, rpunch, rpunch_state, rabiolep, ROT0, "V-System Co. (Bally/Midway/Sente license)", "Rabbit Punch (US)", GAME_NO_COCKTAIL ) |
| 812 | | GAME( 1989, svolley, 0, rpunch, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_NO_COCKTAIL ) |
| 813 | | GAME( 1989, svolleyk, svolley, rpunch, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_NO_COCKTAIL ) |
| 814 | | GAME( 1989, svolleyu, svolley, rpunch, svolley, rpunch_state, svolley, ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_NO_COCKTAIL ) |
| 819 | GAME( 1989, svolley, 0, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_NO_COCKTAIL ) |
| 820 | GAME( 1989, svolleyk, svolley, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_NO_COCKTAIL ) |
| 821 | GAME( 1989, svolleyu, svolley, svolley, svolley, rpunch_state, svolley, ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_NO_COCKTAIL ) |
| 815 | 822 | |
| 816 | 823 | // video registers are changed, and there's some kind of RAM at 090xxx, possible a different sprite scheme for the bootleg (even if the original is intact) |
| 817 | 824 | // the sound system seems to be ripped from the later Power Spikes (see aerofgt.c) |
trunk/src/mame/video/rpunch.c
| r30969 | r30970 | |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | |
| 69 | | void rpunch_state::video_start() |
| 69 | VIDEO_START_MEMBER(rpunch_state,rpunch) |
| 70 | 70 | { |
| 71 | m_sprite_xoffs = 0; |
| 72 | |
| 71 | 73 | /* allocate tilemaps for the backgrounds */ |
| 72 | 74 | m_background[0] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(rpunch_state::get_bg0_tile_info),this),TILEMAP_SCAN_COLS,8,8,64,64); |
| 73 | 75 | m_background[1] = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(rpunch_state::get_bg1_tile_info),this),TILEMAP_SCAN_COLS,8,8,64,64); |
| r30969 | r30970 | |
| 83 | 85 | } |
| 84 | 86 | |
| 85 | 87 | |
| 88 | VIDEO_START_MEMBER(rpunch_state,svolley) |
| 89 | { |
| 90 | VIDEO_START_CALL_MEMBER(rpunch); |
| 91 | m_background[0]->set_scrolldx(8, 0); // aligns middle net sprite with bg as shown in reference |
| 92 | m_sprite_xoffs = -4; |
| 93 | } |
| 86 | 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 87 | 99 | /************************************* |
| 88 | 100 | * |
| 89 | 101 | * Write handlers |
| r30969 | r30970 | |
| 217 | 229 | if (y >= BITMAP_HEIGHT) y -= 512; |
| 218 | 230 | |
| 219 | 231 | m_gfxdecode->gfx(2)->transpen(bitmap,cliprect, |
| 220 | | code, color + (m_sprite_palette / 16), xflip, yflip, x, y, 15); |
| 232 | code, color + (m_sprite_palette / 16), xflip, yflip, x+m_sprite_xoffs, y, 15); |
| 221 | 233 | } |
| 222 | 234 | } |
| 223 | 235 | |