diff options
| author | 2009-01-03 00:47:44 +0000 | |
|---|---|---|
| committer | 2009-01-03 00:47:44 +0000 | |
| commit | e71d65e8960dccbee1e13e581c0d520acbd98471 (patch) | |
| tree | 3628056d994c82dd3d9c31c21c0b76ba15de0dbd | |
| parent | 81d05dc866d21b410af4e4050c5255c9f28d7aa2 (diff) | |
Added simple built-in layout for polepos showing the position of the shifter
(this works thanks to recent changes from Nathan; in fact, any input can
affect the state of an artwork element). Removed debug build hack to popmessage
the shifter state.
| -rw-r--r-- | .gitattributes | 1 | ||||
| -rw-r--r-- | src/mame/drivers/polepos.c | 4 | ||||
| -rw-r--r-- | src/mame/layout/polepos.lay | 68 | ||||
| -rw-r--r-- | src/mame/mame.mak | 2 | ||||
| -rw-r--r-- | src/mame/video/polepos.c | 13 |
5 files changed, 74 insertions, 14 deletions
diff --git a/.gitattributes b/.gitattributes index c7fb9d2bf19..12224babf9a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2544,6 +2544,7 @@ src/mame/layout/pmpoker.lay svneol=native#text/plain src/mame/layout/pmroulet.lay -text svneol=native#plain/text src/mame/layout/poker41.lay svneol=native#text/plain src/mame/layout/pokio.lay svneol=native#text/plain +src/mame/layout/polepos.lay svneol=native#text/plain src/mame/layout/pulltabs.lay svneol=native#text/plain src/mame/layout/pyramid.lay svneol=native#text/plain src/mame/layout/quintoon.lay svneol=native#text/plain diff --git a/src/mame/drivers/polepos.c b/src/mame/drivers/polepos.c index f729d1e0dd1..2a7398630cf 100644 --- a/src/mame/drivers/polepos.c +++ b/src/mame/drivers/polepos.c @@ -223,6 +223,8 @@ Notes: #include "polepos.h" #include "nam_cust.h" +#include "polepos.lh" + #define POLEPOS_TOGGLE PORT_TOGGLE @@ -874,6 +876,7 @@ static MACHINE_DRIVER_START( polepos ) MDRV_GFXDECODE(polepos) MDRV_PALETTE_LENGTH(0x0f00) + MDRV_DEFAULT_LAYOUT(layout_polepos) MDRV_PALETTE_INIT(polepos) MDRV_VIDEO_START(polepos) @@ -1772,4 +1775,3 @@ GAME( 1983, topracrb, polepos, polepos, polepos, polepos, ROT0, "bootleg", "To GAME( 1983, polepos2, 0, polepos, polepos2, polepos2, ROT0, "Namco", "Pole Position II", 0 ) GAME( 1983, poleps2a, polepos2, polepos, polepos2, polepos2, ROT0, "Namco (Atari license)", "Pole Position II (Atari)", 0 ) GAME( 1983, poleps2b, polepos2, polepos, polepos2, polepos, ROT0, "bootleg", "Pole Position II (bootleg)", 0 ) - diff --git a/src/mame/layout/polepos.lay b/src/mame/layout/polepos.lay new file mode 100644 index 00000000000..ac80a38ec1e --- /dev/null +++ b/src/mame/layout/polepos.lay @@ -0,0 +1,68 @@ +<?xml version="1.0"?> +<mamelayout version="2"> + <element name="shifter" defstate="0"> + <rect> + <bounds left="5" top="0" right="35" bottom="40" /> + <color red="0.0" green="0.0" blue="0.0" /> + </rect> + + <disk> + <bounds left="18" right="22" top="9" bottom="11" /> + <color red="0.25" green="0.25" blue="0.25" /> + </disk> + <rect> + <bounds left="18" right="22" top="10" bottom="30" /> + <color red="0.25" green="0.25" blue="0.25" /> + </rect> + <disk> + <bounds left="18" right="22" top="29" bottom="31" /> + <color red="0.25" green="0.25" blue="0.25" /> + </disk> + + <text string="L"> + <bounds left="15" right="25" top="2" bottom="8" /> + <color red="1" green="1" blue="1" /> + </text> + <text string="H"> + <bounds left="15" right="25" top="32" bottom="38" /> + <color red="1" green="1" blue="1" /> + </text> + + <rect state="0"> + <bounds left="10" right="30" top="10" bottom="15" /> + <color red="0.75" green="0.0" blue="0.0" /> + </rect> + <disk state="0"> + <bounds left="7.5" right="12.5" top="10" bottom="15" /> + <color red="0.75" green="0.0" blue="0.0" /> + </disk> + <disk state="0"> + <bounds left="27.5" right="32.5" top="10" bottom="15" /> + <color red="0.75" green="0.0" blue="0.0" /> + </disk> + + <rect state="1"> + <bounds left="10" right="30" top="25" bottom="30" /> + <color red="0.75" green="0.0" blue="0.0" /> + </rect> + <disk state="1"> + <bounds left="7.5" right="12.5" top="25" bottom="30" /> + <color red="0.75" green="0.0" blue="0.0" /> + </disk> + <disk state="1"> + <bounds left="27.5" right="32.5" top="25" bottom="30" /> + <color red="0.75" green="0.0" blue="0.0" /> + </disk> + </element> + + <view name="Shifter"> + <screen index="0"> + <bounds left="0" top="0" right="4" bottom="3" /> + </screen> + + <bezel element="shifter" inputtag="IN0" inputmask="0x02"> + <bounds x="3.7" y="2.45" width="0.25" height="0.5" /> + <color alpha="0.9" /> + </bezel> + </view> +</mamelayout> diff --git a/src/mame/mame.mak b/src/mame/mame.mak index f82d62c029b..02d4c6df0f0 100644 --- a/src/mame/mame.mak +++ b/src/mame/mame.mak @@ -1771,6 +1771,8 @@ $(DRIVERS)/peplus.o: $(LAYOUT)/peplus.lh \ $(LAYOUT)/pe_keno.lh \ $(LAYOUT)/pe_slots.lh +$(DRIVERS)/polepos.o: $(LAYOUT)/polepos.lh + $(DRIVERS)/qix.o: $(LAYOUT)/elecyoyo.lh $(DRIVERS)/re900.o: $(LAYOUT)/re900.lh diff --git a/src/mame/video/polepos.c b/src/mame/video/polepos.c index 607214a25a5..2fb015f5fa6 100644 --- a/src/mame/video/polepos.c +++ b/src/mame/video/polepos.c @@ -515,18 +515,5 @@ VIDEO_UPDATE( polepos ) draw_road(screen->machine, bitmap); draw_sprites(screen->machine, bitmap,cliprect); tilemap_draw(bitmap,cliprect,tx_tilemap,0,0); -/* following code should be enabled only in a debug build */ -/* original arcade doesn't work in this way */ -#ifdef MAME_DEBUG - { - int in = input_port_read(screen->machine, "IN0"); - static int lastin; - - if ((in ^ lastin) & polepos_gear_bit) - popmessage((in & polepos_gear_bit) ? "LO" : "HI"); - - lastin = in; - } -#endif return 0; } |
