Added preliminary 7-seg artwork for King Derby [Angelo Salese]

This commit is contained in:
Angelo Salese 2011-09-11 19:54:58 +00:00
parent 661aeeae8e
commit 7ba1c143b8
4 changed files with 171 additions and 15 deletions

1
.gitattributes vendored
View File

@ -3719,6 +3719,7 @@ src/mame/layout/invaders.lay svneol=native#text/plain
src/mame/layout/invrvnge.lay svneol=native#text/plain src/mame/layout/invrvnge.lay svneol=native#text/plain
src/mame/layout/jollycrd.lay svneol=native#text/plain src/mame/layout/jollycrd.lay svneol=native#text/plain
src/mame/layout/kgbird.lay svneol=native#text/plain src/mame/layout/kgbird.lay svneol=native#text/plain
src/mame/layout/kingdrby.lay svneol=native#text/plain
src/mame/layout/lagunar.lay svneol=native#text/plain src/mame/layout/lagunar.lay svneol=native#text/plain
src/mame/layout/lazercmd.lay svneol=native#text/plain src/mame/layout/lazercmd.lay svneol=native#text/plain
src/mame/layout/luckgrln.lay svneol=native#text/plain src/mame/layout/luckgrln.lay svneol=native#text/plain

View File

@ -71,6 +71,7 @@ sg1_b.e1 4096 0x92ef3c13 D2732D
#include "sound/okim6295.h" #include "sound/okim6295.h"
#include "sound/2203intf.h" #include "sound/2203intf.h"
#include "machine/nvram.h" #include "machine/nvram.h"
#include "kingdrby.lh"
class kingdrby_state : public driver_device class kingdrby_state : public driver_device
@ -360,6 +361,9 @@ static READ8_DEVICE_HANDLER( sound_cmd_r )
return state->m_sound_cmd; return state->m_sound_cmd;
} }
static const UINT8 led_map[16] =
{ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7c,0x07,0x7f,0x67,0x77,0x7c,0x39,0x5e,0x79,0x00 };
static WRITE8_HANDLER( led_array_w ) static WRITE8_HANDLER( led_array_w )
{ {
/* /*
@ -369,6 +373,9 @@ static WRITE8_HANDLER( led_array_w )
they goes from 0 to 5, to indicate the number. they goes from 0 to 5, to indicate the number.
If one player bets something, the other led will toggle between p1 and p2 bets. If one player bets something, the other led will toggle between p1 and p2 bets.
*/ */
output_set_digit_value(0xf + offset, led_map[(data & 0xf0) >> 4]);
output_set_digit_value(0x0 + offset, led_map[(data & 0x0f) >> 0]);
} }
/************************************* /*************************************
@ -1180,6 +1187,6 @@ ROM_START( cowrace )
ROM_END ROM_END
GAME( 1981, kingdrby, 0, kingdrby, kingdrby, 0, ROT0, "Tazmi", "King Derby (1981)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND ) GAMEL( 1981, kingdrby, 0, kingdrby, kingdrby, 0, ROT0, "Tazmi", "King Derby (1981)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND, layout_kingdrby )
GAME( 1986, kingdrbb, kingdrby, kingdrbb, kingdrbb, 0, ROT0, "bootleg (Casino Electronics)", "King Derby (Taiwan bootleg)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS ) GAME( 1986, kingdrbb, kingdrby, kingdrbb, kingdrbb, 0, ROT0, "bootleg (Casino Electronics)", "King Derby (Taiwan bootleg)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_COLORS )
GAME( 2000, cowrace, kingdrby, cowrace, kingdrbb, 0, ROT0, "bootleg", "Cow Race (1986 King Derby hack)", GAME_NOT_WORKING | GAME_WRONG_COLORS ) GAME( 2000, cowrace, kingdrby, cowrace, kingdrbb, 0, ROT0, "bootleg", "Cow Race (1986 King Derby hack)", GAME_NOT_WORKING | GAME_WRONG_COLORS )

View File

@ -0,0 +1,146 @@
<?xml version="1.0"?>
<mamelayout version="2">
<element name="digit" defstate="10">
<led7seg>
<color red="1.0" green="0.2" blue="0.0" />
</led7seg>
</element>
<view name="Simple LEDs">
<screen index="0">
<bounds left="0" top="0" right="4" bottom="3" />
</screen>
<bezel name="digit0" element="digit">
<bounds x="0.0" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit1" element="digit">
<bounds x="0.2" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit2" element="digit">
<bounds x="0.4" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit3" element="digit">
<bounds x="0.6" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit4" element="digit">
<bounds x="0.8" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit5" element="digit">
<bounds x="1.2" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit6" element="digit">
<bounds x="1.4" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit7" element="digit">
<bounds x="1.6" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit8" element="digit">
<bounds x="1.8" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit9" element="digit">
<bounds x="2.2" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit10" element="digit">
<bounds x="2.4" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit11" element="digit">
<bounds x="2.6" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit12" element="digit">
<bounds x="3.0" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit13" element="digit">
<bounds x="3.2" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit14" element="digit">
<bounds x="3.6" y="3.0" width="0.2" height="0.3" />
</bezel>
<bezel name="digit15" element="digit">
<bounds x="0.0" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit16" element="digit">
<bounds x="0.2" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit17" element="digit">
<bounds x="0.4" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit18" element="digit">
<bounds x="0.6" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit19" element="digit">
<bounds x="0.8" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit20" element="digit">
<bounds x="1.2" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit21" element="digit">
<bounds x="1.4" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit22" element="digit">
<bounds x="1.6" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit23" element="digit">
<bounds x="1.8" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit24" element="digit">
<bounds x="2.2" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit25" element="digit">
<bounds x="2.4" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit26" element="digit">
<bounds x="2.6" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit27" element="digit">
<bounds x="3.0" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit28" element="digit">
<bounds x="3.2" y="-0.3" width="0.2" height="0.3" />
</bezel>
<bezel name="digit29" element="digit">
<bounds x="3.6" y="-0.3" width="0.2" height="0.3" />
</bezel>
</view>
</mamelayout>

View File

@ -1909,11 +1909,11 @@ $(DRIVERS)/blockade.o: $(LAYOUT)/blockade.lh
$(DRIVERS)/buggychl.o: $(LAYOUT)/buggychl.lh $(DRIVERS)/buggychl.o: $(LAYOUT)/buggychl.lh
$(DRIVERS)/bzone.o: $(LAYOUT)/bzone.lh $(DRIVERS)/bzone.o: $(LAYOUT)/bzone.lh
$(DRIVERS)/cardline.o: $(LAYOUT)/cardline.lh $(DRIVERS)/cardline.o: $(LAYOUT)/cardline.lh
$(DRIVERS)/cdi.o: $(LAYOUT)/cdi.lh $(DRIVERS)/cdi.o: $(LAYOUT)/cdi.lh
$(DRIVERS)/changela.o: $(LAYOUT)/changela.lh $(DRIVERS)/changela.o: $(LAYOUT)/changela.lh
@ -1963,6 +1963,8 @@ $(DRIVERS)/highvdeo.o: $(LAYOUT)/fashion.lh
$(DRIVERS)/igspoker.o: $(LAYOUT)/igspoker.lh $(DRIVERS)/igspoker.o: $(LAYOUT)/igspoker.lh
$(DRIVERS)/kingdrby.o: $(LAYOUT)/kingdrby.lh
$(DRIVERS)/lazercmd.o: $(LAYOUT)/lazercmd.lh $(DRIVERS)/lazercmd.o: $(LAYOUT)/lazercmd.lh
$(DRIVERS)/luckgrln.o: $(LAYOUT)/luckgrln.lh $(DRIVERS)/luckgrln.o: $(LAYOUT)/luckgrln.lh
@ -1976,19 +1978,19 @@ $(DRIVERS)/majorpkr.o: $(LAYOUT)/majorpkr.lh
$(DRIVERS)/maxaflex.o: $(LAYOUT)/maxaflex.lh $(DRIVERS)/maxaflex.o: $(LAYOUT)/maxaflex.lh
$(DRIVERS)/mcr3.o: $(LAYOUT)/turbotag.lh $(DRIVERS)/mcr3.o: $(LAYOUT)/turbotag.lh
$(DRIVERS)/mpoker.o: $(LAYOUT)/mpoker.lh $(DRIVERS)/mpoker.o: $(LAYOUT)/mpoker.lh
$(DRIVERS)/mpu4.o: $(LAYOUT)/mpu4.lh \ $(DRIVERS)/mpu4.o: $(LAYOUT)/mpu4.lh \
$(LAYOUT)/connect4.lh \ $(LAYOUT)/connect4.lh \
$(LAYOUT)/mpu4ext.lh \ $(LAYOUT)/mpu4ext.lh \
$(LAYOUT)/gamball.lh $(LAYOUT)/gamball.lh
$(DRIVERS)/mpu4vid.o: $(LAYOUT)/crmaze2p.lh \ $(DRIVERS)/mpu4vid.o: $(LAYOUT)/crmaze2p.lh \
$(LAYOUT)/crmaze4p.lh $(LAYOUT)/crmaze4p.lh
$(DRIVERS)/mw18w.o: $(LAYOUT)/18w.lh $(DRIVERS)/mw18w.o: $(LAYOUT)/18w.lh
$(DRIVERS)/mw8080bw.o: $(LAYOUT)/280zzzap.lh \ $(DRIVERS)/mw8080bw.o: $(LAYOUT)/280zzzap.lh \
$(LAYOUT)/clowns.lh \ $(LAYOUT)/clowns.lh \
@ -2027,11 +2029,11 @@ $(DRIVERS)/peplus.o: $(LAYOUT)/peplus.lh \
$(DRIVERS)/polepos.o: $(LAYOUT)/polepos.lh \ $(DRIVERS)/polepos.o: $(LAYOUT)/polepos.lh \
$(LAYOUT)/topracer.lh $(LAYOUT)/topracer.lh
$(DRIVERS)/qix.o: $(LAYOUT)/elecyoyo.lh $(DRIVERS)/qix.o: $(LAYOUT)/elecyoyo.lh
$(DRIVERS)/re900.o: $(LAYOUT)/re900.lh $(DRIVERS)/re900.o: $(LAYOUT)/re900.lh
$(DRIVERS)/roul.o: $(LAYOUT)/roul.lh $(DRIVERS)/roul.o: $(LAYOUT)/roul.lh
$(DRIVERS)/sbrkout.o: $(LAYOUT)/sbrkout.lh $(DRIVERS)/sbrkout.o: $(LAYOUT)/sbrkout.lh
@ -2087,11 +2089,11 @@ $(DRIVERS)/thayers.o: $(LAYOUT)/dlair.lh
$(DRIVERS)/topspeed.o: $(LAYOUT)/topspeed.lh $(DRIVERS)/topspeed.o: $(LAYOUT)/topspeed.lh
$(DRIVERS)/turbo.o: $(LAYOUT)/turbo.lh \ $(DRIVERS)/turbo.o: $(LAYOUT)/turbo.lh \
$(LAYOUT)/subroc3d.lh \ $(LAYOUT)/subroc3d.lh \
$(LAYOUT)/buckrog.lh $(LAYOUT)/buckrog.lh
$(DRIVERS)/tx1.o: $(LAYOUT)/buggybjr.lh \ $(DRIVERS)/tx1.o: $(LAYOUT)/buggybjr.lh \
$(LAYOUT)/buggyboy.lh \ $(LAYOUT)/buggyboy.lh \
$(LAYOUT)/tx1.lh $(LAYOUT)/tx1.lh