Skip to content

Commit

Permalink
magicard.cpp, jjokeri/pokeri improvements [Roberto Fresca, Grull Osgo]
Browse files Browse the repository at this point in the history
 - Created a default Dallas DS1207 binary to match the game requeriments.
 - Created a default clean NVRAM.
 - Changed the setname from jjokeri --> pokeri.
 - Changed game description to Poker (Impera, V11/90b).
 - Different works on lamps, inputs and DIP switches.
 - Some other fixes.
 - Added a clickable button-lamps layout.
 - Promoted the game to working.

Systems promoted to working
---------------------------
Poker (Impera, V11/90b) [Roberto Fresca, Grull Osgo]
  • Loading branch information
RobertoFresca committed Dec 25, 2023
1 parent 0fb6670 commit a51e824
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 62 deletions.
196 changes: 196 additions & 0 deletions src/mame/layout/pokeri.lay
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
<?xml version="1.0"?>
<!--
license:CC0-1.0
copyright-holders: Roberto Fresca
**************************************************
Poker (impera).
Realistic clickable buttons-lamps.
**************************************************
-->
<mamelayout version="2">
<element name="hold1" defstate="0">
<rect state="1">
<color red="1.0" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.3" green="0.0" blue="0.0" />
</rect>
<text string="HOLD 1">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.2" width="1" height="0.6" />
</text>
</element>

<element name="hold2" defstate="0">
<rect state="1">
<color red="1.0" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.3" green="0.0" blue="0.0" />
</rect>
<text string="HOLD 2">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.4" />
</text>
<text string="LOW">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.5" width="1" height="0.4" />
</text>
</element>

<element name="hold3" defstate="0">
<rect state="1">
<color red="1.0" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.3" green="0.0" blue="0.0" />
</rect>
<text string="HOLD 3">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.2" width="1" height="0.6" />
</text>
</element>

<element name="hold4" defstate="0">
<rect state="1">
<color red="1.0" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.3" green="0.0" blue="0.0" />
</rect>
<text string="HOLD 4">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.4" />
</text>
<text string="HIGH">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.5" width="1" height="0.4" />
</text>
</element>

<element name="hold5" defstate="0">
<rect state="1">
<color red="1.0" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.3" green="0.0" blue="0.0" />
</rect>
<text string="HOLD 5">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.4" />
</text>
<text string="BET/HALF">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.5" width="1" height="0.4" />
</text>
</element>

<element name="cancel" defstate="0">
<rect state="1">
<color red="0.0" green="1.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.25" blue="0.0" />
</rect>
<text string="CANCEL">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.4" />
</text>
<text string="TAKE/AUTOHOLD">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.5" width="1" height="0.4" />
</text>
</element>

<element name="start" defstate="0">
<rect state="1">
<color red="0.0" green="1.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.25" blue="0.0" />
</rect>
<text string="START">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.2" width="1" height="0.6" />
</text>
</element>


<element name="hold_b" defstate="0">
<rect state="1">
<color red="0.7" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.2" green="0.0" blue="0.0" />
</rect>
</element>

<element name="start_b" defstate="0">
<rect state="1">
<color red="0.0" green="0.7" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.15" blue="0.0" />
</rect>
</element>


<view name="Button Lamps">

<screen index="0">
<bounds left="0" top="0" right="4" bottom="3" />
</screen>

<element name="lamp1" ref="hold_b" inputtag="IN0" inputmask="0x0010">
<bounds x="0.10" y="3.13" width="0.55" height="0.24" />
</element>
<element name="lamp1" ref="hold1" inputtag="IN0" inputmask="0x0010">
<bounds x="0.12" y="3.15" width="0.51" height="0.20" />
</element>

<element name="lamp2" ref="hold_b" inputtag="IN0" inputmask="0x0800">
<bounds x="0.75" y="3.13" width="0.55" height="0.24" />
</element>
<element name="lamp2" ref="hold2" inputtag="IN0" inputmask="0x0800">
<bounds x="0.77" y="3.15" width="0.51" height="0.20" />
</element>

<element name="lamp3" ref="hold_b" inputtag="IN0" inputmask="0x1000">
<bounds x="1.40" y="3.13" width="0.55" height="0.24" />
</element>
<element name="lamp3" ref="hold3" inputtag="IN0" inputmask="0x1000">
<bounds x="1.42" y="3.15" width="0.51" height="0.20" />
</element>

<element name="lamp4" ref="hold_b" inputtag="IN0" inputmask="0x0400">
<bounds x="2.05" y="3.13" width="0.55" height="0.24" />
</element>
<element name="lamp4" ref="hold4" inputtag="IN0" inputmask="0x0400">
<bounds x="2.07" y="3.15" width="0.51" height="0.20" />
</element>

<element name="lamp5" ref="hold_b" inputtag="IN0" inputmask="0x0040">
<bounds x="2.70" y="3.13" width="0.55" height="0.24" />
</element>
<element name="lamp5" ref="hold5" inputtag="IN0" inputmask="0x0040">
<bounds x="2.72" y="3.15" width="0.51" height="0.20" />
</element>

<element name="lamp6" ref="start_b" inputtag="IN0" inputmask="0x0020">
<bounds x="3.35" y="3.02" width="0.55" height="0.24" />
</element>
<element name="lamp6" ref="cancel" inputtag="IN0" inputmask="0x0020">
<bounds x="3.37" y="3.04" width="0.51" height="0.20" />
</element>

<element name="lamp7" ref="start_b" inputtag="IN0" inputmask="0x0080">
<bounds x="3.35" y="3.28" width="0.55" height="0.24" />
</element>
<element name="lamp7" ref="start" inputtag="IN0" inputmask="0x0080">
<bounds x="3.37" y="3.30" width="0.51" height="0.20" />
</element>

</view>
</mamelayout>
2 changes: 1 addition & 1 deletion src/mame/mame.lst
Original file line number Diff line number Diff line change
Expand Up @@ -30509,7 +30509,6 @@ belslots // (c) 1999 Impera
bigdeal0 // (c) 2001 Impera
dallaspk // 1993, unknown
hotslots // (c) 2002 Impera
jjokeri // (c) 199? Impera
kajotcrd // (c) 1993 Amatic
lucky7i // (c) 1991 Impera
lucky7x // (c) 1991 Impera
Expand All @@ -30526,6 +30525,7 @@ magicrdec // (c) 1994 Impera
magicrdj // (c) 1998 Impera
magicrdja // (c) 1998 Impera
magicle // (c) 2001 Impera
pokeri // (c) 1991 Impera
puzzleme // (c) 199? Impera
quingo // (c) 1999 Impera
simpbest // (c) 2001 Kajot
Expand Down
Loading

0 comments on commit a51e824

Please sign in to comment.