lbeach: crop right side of screen (nw)

This commit is contained in:
hap 2020-04-06 15:31:20 +02:00
parent 1bd6f295c9
commit 81d73831a2
3 changed files with 27 additions and 9 deletions

View File

@ -24,14 +24,16 @@ TODO:
- discrete sound
- unknown writes (most of it is sound)
- improve colors, lbeach is monochrome but what about speedrs?
- right side of screen should be cropped? but speedrs sprite collision check
wouldn't work then
- is steering wheel analog? eg. with pulses to d7
- some unknown romlabels (see "x")
- lbeach 93448.h4 rom is a bad dump? it misses animation frames compared to
speedrs, but when compared to enemy cars, it looks ok
- speedrs has nvram? high scores are not saved
- sprite x position is wrong, but moving it to the left will break speedrs
(it does a sprite collision check at boot)
- right side of screen should not be rendered? but speedrs sprite collision
check wouldn't work then. Video recording(pcb to monitor, not cabinet)
of lbeach shows right side is cropped - it is handled in the .lay file
***************************************************************************/
@ -177,7 +179,7 @@ u32 lbeach_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, con
int sprite_y = 160;
m_colmap_car.fill(0, cliprect);
m_gfxdecode->gfx(2)->transpen(m_colmap_car,cliprect, sprite_code, 0, 0, 0, sprite_x, sprite_y, 0);
m_gfxdecode->gfx(2)->transpen(m_colmap_car, cliprect, sprite_code, 0, 0, 0, sprite_x, sprite_y, 0);
bitmap_ind16 &fg_bitmap = m_fg_tilemap->pixmap();
m_collision_bg_car = 0;
@ -196,8 +198,8 @@ u32 lbeach_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, con
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
// draw player car
m_gfxdecode->gfx(2)->transpen(bitmap,cliprect, sprite_code, 0, 0, 0, sprite_x, sprite_y, 0);
m_gfxdecode->gfx(2)->transpen(bitmap,cliprect, sprite_code | 0x10, 0, 0, 0, sprite_x, sprite_y + 16, 0);
m_gfxdecode->gfx(2)->transpen(bitmap, cliprect, sprite_code, 0, 0, 0, sprite_x, sprite_y, 0);
m_gfxdecode->gfx(2)->transpen(bitmap, cliprect, sprite_code | 0x10, 0, 0, 0, sprite_x, sprite_y + 16, 0);
return 0;
}

View File

@ -27,12 +27,18 @@ license:CC0
</rect>
</element>
<element name="black"><rect><color red="0" green="0" blue="0" /></rect></element>
<view name="Color Overlay">
<bounds left="0" right="640" top="0" bottom="480" />
<screen index="0">
<bounds left="0" top="0" right="4" bottom="3" />
<bounds x="0" y="0" width="738.46" height="480" />
</screen>
<bezel element="black">
<bounds x="640" y="0" width="100" height="480" />
</bezel>
<overlay element="overlay">
<bounds left="0" top="0" right="4" bottom="3" />
<bounds x="0" y="0" width="738.46" height="480" />
</overlay>
</view>
</mamelayout>

View File

@ -51,19 +51,29 @@ license:CC0
</disk>
</element>
<element name="black"><rect><color red="0" green="0" blue="0" /></rect></element>
<view name="Shifter-R">
<bounds left="0" right="640" top="0" bottom="480" />
<screen index="0">
<bounds x="0" y="0" width="640" height="480" />
<bounds x="0" y="0" width="738.46" height="480" />
</screen>
<bezel element="black">
<bounds x="640" y="0" width="100" height="480" />
</bezel>
<bezel element="shifter" inputtag="IN.2" inputmask="0x02">
<bounds x="606" y="414" width="32" height="64" />
<color alpha="0.6" />
</bezel>
</view>
<view name="Shifter-L">
<bounds left="0" right="640" top="0" bottom="480" />
<screen index="0">
<bounds x="0" y="0" width="640" height="480" />
<bounds x="0" y="0" width="738.46" height="480" />
</screen>
<bezel element="black">
<bounds x="640" y="0" width="100" height="480" />
</bezel>
<bezel element="shifter" inputtag="IN.2" inputmask="0x02">
<bounds x="2" y="414" width="32" height="64" />
<color alpha="0.6" />