Previous 199869 Revisions Next

r30970 Saturday 14th June, 2014 at 00:24:59 UTC by David Haywood
improve layer alignments with video reference (nw)
[src/mame/drivers]rpunch.c
[src/mame/includes]rpunch.h
[src/mame/video]rpunch.c

trunk/src/mame/drivers/rpunch.c
r30969r30970
495495   MCFG_PALETTE_ADD("palette", 1024)
496496   MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
497497
498   MCFG_VIDEO_START_OVERRIDE(rpunch_state,rpunch)
498499
499500   /* sound hardware */
500501   MCFG_SPEAKER_STANDARD_MONO("mono")
r30969r30970
508509   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
509510MACHINE_CONFIG_END
510511
512static MACHINE_CONFIG_DERIVED( svolley, rpunch )
513   MCFG_VIDEO_START_OVERRIDE(rpunch_state,svolley)
514MACHINE_CONFIG_END
511515
516
512517// c+p of above for now, bootleg hw, things need verifying
513518static MACHINE_CONFIG_START( svolleybl, rpunch_state )
514519
r30969r30970
532537   MCFG_PALETTE_ADD("palette", 1024)
533538   MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
534539
540   MCFG_VIDEO_START_OVERRIDE(rpunch_state,rpunch)
535541
536542   /* sound hardware */
543
537544   MCFG_SPEAKER_STANDARD_MONO("mono")
538545
539546   MCFG_YM2151_ADD("ymsnd", MASTER_CLOCK/4)
r30969r30970
809816
810817GAME( 1987, rabiolep, 0,        rpunch,   rabiolep, rpunch_state, rabiolep, ROT0, "V-System Co.", "Rabio Lepus (Japan)", GAME_NO_COCKTAIL )
811818GAME( 1987, rpunch,   rabiolep, rpunch,   rpunch, rpunch_state,   rabiolep, ROT0, "V-System Co. (Bally/Midway/Sente license)", "Rabbit Punch (US)", GAME_NO_COCKTAIL )
812GAME( 1989, svolley,  0,        rpunch,   svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_NO_COCKTAIL )
813GAME( 1989, svolleyk, svolley,  rpunch,   svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_NO_COCKTAIL )
814GAME( 1989, svolleyu, svolley,  rpunch,   svolley, rpunch_state,  svolley,  ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_NO_COCKTAIL )
819GAME( 1989, svolley,  0,        svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Japan)", GAME_NO_COCKTAIL )
820GAME( 1989, svolleyk, svolley,  svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co.", "Super Volleyball (Korea)", GAME_NO_COCKTAIL )
821GAME( 1989, svolleyu, svolley,  svolley,  svolley, rpunch_state,  svolley,  ROT0, "V-System Co. (Data East license)", "Super Volleyball (US)", GAME_NO_COCKTAIL )
815822
816823// 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)
817824// the sound system seems to be ripped from the later Power Spikes (see aerofgt.c)
trunk/src/mame/includes/rpunch.h
r30969r30970
4949   TILE_GET_INFO_MEMBER(get_bg0_tile_info);
5050   TILE_GET_INFO_MEMBER(get_bg1_tile_info);
5151   virtual void machine_reset();
52   virtual void video_start();
52   
53   DECLARE_VIDEO_START(rpunch);
54   DECLARE_VIDEO_START(svolley);
55
56   int m_sprite_xoffs;
57
5358   UINT32 screen_update_rpunch(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5459   TIMER_CALLBACK_MEMBER(sound_command_w_callback);
5560   TIMER_CALLBACK_MEMBER(crtc_interrupt_gen);
trunk/src/mame/video/rpunch.c
r30969r30970
6666}
6767
6868
69void rpunch_state::video_start()
69VIDEO_START_MEMBER(rpunch_state,rpunch)
7070{
71   m_sprite_xoffs = 0;
72
7173   /* allocate tilemaps for the backgrounds */
7274   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);
7375   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);
r30969r30970
8385}
8486
8587
88VIDEO_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}
8694
95
96
97
98
8799/*************************************
88100 *
89101 *  Write handlers
r30969r30970
217229      if (y >= BITMAP_HEIGHT) y -= 512;
218230
219231      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);
221233   }
222234}
223235

Previous 199869 Revisions Next


© 1997-2024 The MAME Team