mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
damesc/edames: no need to precalculate alpha color for selected pieces
This commit is contained in:
parent
035d49869d
commit
4abe6e2303
@ -11,7 +11,10 @@ TRAP interrupt for the beeper routine. Very strange.
|
||||
Hardware notes:
|
||||
- PCB label: TRIUMPHE CHESS KING
|
||||
- Hitachi HD6301V1P, 4MHz XTAL
|
||||
- 8*8 chessboard buttons, 32 LEDs (not counting power-on LED, piezo
|
||||
- 8*8 chessboard buttons, 32 LEDs, piezo
|
||||
|
||||
It's in the same housing as Chess King Master, they repurposed the green LED
|
||||
for a power-on LED.
|
||||
|
||||
*******************************************************************************/
|
||||
|
||||
@ -182,5 +185,5 @@ ROM_END
|
||||
Drivers
|
||||
*******************************************************************************/
|
||||
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
SYST( 1985, triomphe, 0, 0, triomphe, triomphe, triomphe_state, empty_init, "Chess King / Intelligent Software", "Triomphe", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
SYST( 1985, triomphe, 0, 0, triomphe, triomphe, triomphe_state, empty_init, "Chess King / Intelligent Software", "Triomphe", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
|
@ -211,90 +211,94 @@ license:CC0-1.0
|
||||
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
|
||||
<color red="0.5" green="0.2" blue="0.05" />
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
<element name="piece_sel" defstate="0">
|
||||
<rect><color alpha="0" /></rect> <!-- force unit square element bounds -->
|
||||
|
||||
<!-- selected pieces -->
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.705" green="0.65" blue="0.495" />
|
||||
<color red="1" green="0.9" blue="0.6" />
|
||||
</disk>
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
|
||||
<color red="0.65" green="0.56" blue="0.465" />
|
||||
<color red="0.9" green="0.72" blue="0.54" />
|
||||
</disk>
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.6" height="0.6" />
|
||||
<color red="0.705" green="0.65" blue="0.495" />
|
||||
<color red="1" green="0.9" blue="0.6" />
|
||||
</disk>
|
||||
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.705" green="0.65" blue="0.495" />
|
||||
<color red="1" green="0.9" blue="0.6" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.76" height="0.76" />
|
||||
<color red="0.705" green="0.65" blue="0.495" />
|
||||
<color red="1" green="0.9" blue="0.6" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.64" height="0.64" />
|
||||
<color red="0.65" green="0.56" blue="0.465" />
|
||||
<color red="0.9" green="0.72" blue="0.54" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
|
||||
<color red="0.705" green="0.65" blue="0.495" />
|
||||
<color red="1" green="0.9" blue="0.6" />
|
||||
</disk>
|
||||
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.455" green="0.3" blue="0.22" />
|
||||
<color red="0.5" green="0.2" blue="0.05" />
|
||||
</disk>
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
|
||||
<color red="0.54" green="0.335" blue="0.245" />
|
||||
<color red="0.67" green="0.27" blue="0.1" />
|
||||
</disk>
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.6" height="0.6" />
|
||||
<color red="0.455" green="0.3" blue="0.22" />
|
||||
<color red="0.5" green="0.2" blue="0.05" />
|
||||
</disk>
|
||||
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.455" green="0.3" blue="0.22" />
|
||||
<color red="0.5" green="0.2" blue="0.05" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.76" height="0.76" />
|
||||
<color red="0.455" green="0.3" blue="0.22" />
|
||||
<color red="0.5" green="0.2" blue="0.05" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.64" height="0.64" />
|
||||
<color red="0.54" green="0.335" blue="0.245" />
|
||||
<color red="0.67" green="0.27" blue="0.1" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
|
||||
<color red="0.455" green="0.3" blue="0.22" />
|
||||
<color red="0.5" green="0.2" blue="0.05" />
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
@ -314,6 +318,7 @@ license:CC0-1.0
|
||||
<element ref="text_e~yi~~xi~"><bounds x="~xl~" y="~yl~" width="4.9" height="2.35" /></element>
|
||||
</repeat>
|
||||
</repeat>
|
||||
|
||||
<repeat count="5">
|
||||
<param name="y" start="10" increment="20" />
|
||||
<param name="yl" start="17.65" increment="20" />
|
||||
@ -343,7 +348,14 @@ license:CC0-1.0
|
||||
<element name="piece_c~i~" ref="piece"><bounds x="50" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_d~i~" ref="piece"><bounds x="70" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_e~i~" ref="piece"><bounds x="90" y="~y~" width="10" height="10" /></element>
|
||||
|
||||
<element name="piece_a~i~" ref="piece_sel"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_b~i~" ref="piece_sel"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_c~i~" ref="piece_sel"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_d~i~" ref="piece_sel"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_e~i~" ref="piece_sel"><bounds x="90" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="5">
|
||||
<param name="y" start="10" increment="20" />
|
||||
<param name="i" start="9" increment="-2" />
|
||||
@ -359,6 +371,12 @@ license:CC0-1.0
|
||||
<element name="piece_c~i~" ref="piece"><bounds x="40" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_d~i~" ref="piece"><bounds x="60" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_e~i~" ref="piece"><bounds x="80" y="~y~" width="10" height="10" /></element>
|
||||
|
||||
<element name="piece_a~i~" ref="piece_sel"><bounds x="0" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_b~i~" ref="piece_sel"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_c~i~" ref="piece_sel"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_d~i~" ref="piece_sel"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_e~i~" ref="piece_sel"><bounds x="80" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
</repeat>
|
||||
</group>
|
||||
|
||||
|
@ -75,7 +75,7 @@ license:CC0-1.0
|
||||
<element name="cwhite"><rect><color red="0.1" green="0.65" blue="0.35" /></rect></element>
|
||||
|
||||
<element name="hlbb" defstate="0">
|
||||
<text string=" "><bounds x="0" y="0" width="1" height="1" /></text>
|
||||
<rect><color alpha="0" /></rect> <!-- force unit square element bounds -->
|
||||
<disk state="1">
|
||||
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
|
||||
<color red="1" green="1" blue="1" />
|
||||
@ -83,7 +83,7 @@ license:CC0-1.0
|
||||
</element>
|
||||
|
||||
<element name="piece" defstate="0">
|
||||
<text string=" "><bounds x="0" y="0" width="1" height="1" /></text>
|
||||
<rect><color alpha="0" /></rect> <!-- force unit square element bounds -->
|
||||
<disk state="1">
|
||||
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
|
@ -166,90 +166,94 @@ license:CC0-1.0
|
||||
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
|
||||
<color red="0.5" green="0.05" blue="0.15" />
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
<element name="piece_sel" defstate="0">
|
||||
<rect><color alpha="0" /></rect> <!-- force unit square element bounds -->
|
||||
|
||||
<!-- selected pieces -->
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.705" green="0.7" blue="0.695" />
|
||||
<color red="1" green="1" blue="1" />
|
||||
</disk>
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
|
||||
<color red="0.61" green="0.605" blue="0.6" />
|
||||
<color red="0.81" green="0.81" blue="0.81" />
|
||||
</disk>
|
||||
<disk state="5">
|
||||
<bounds xc="0.5" yc="0.5" width="0.6" height="0.6" />
|
||||
<color red="0.705" green="0.7" blue="0.695" />
|
||||
<color red="1" green="1" blue="1" />
|
||||
</disk>
|
||||
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.705" green="0.7" blue="0.695" />
|
||||
<color red="1" green="1" blue="1" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.76" height="0.76" />
|
||||
<color red="0.705" green="0.7" blue="0.695" />
|
||||
<color red="1" green="1" blue="1" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.64" height="0.64" />
|
||||
<color red="0.61" green="0.605" blue="0.6" />
|
||||
<color red="0.81" green="0.81" blue="0.81" />
|
||||
</disk>
|
||||
<disk state="6">
|
||||
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
|
||||
<color red="0.705" green="0.7" blue="0.695" />
|
||||
<color red="1" green="1" blue="1" />
|
||||
</disk>
|
||||
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.455" green="0.225" blue="0.27" />
|
||||
<color red="0.5" green="0.05" blue="0.15" />
|
||||
</disk>
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
|
||||
<color red="0.54" green="0.235" blue="0.295" />
|
||||
<color red="0.67" green="0.07" blue="0.2" />
|
||||
</disk>
|
||||
<disk state="7">
|
||||
<bounds xc="0.5" yc="0.5" width="0.6" height="0.6" />
|
||||
<color red="0.455" green="0.225" blue="0.27" />
|
||||
<color red="0.5" green="0.05" blue="0.15" />
|
||||
</disk>
|
||||
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
|
||||
<color red="0.455" green="0.225" blue="0.27" />
|
||||
<color red="0.5" green="0.05" blue="0.15" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
|
||||
<color red="0.205" green="0.2" blue="0.195" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.76" height="0.76" />
|
||||
<color red="0.455" green="0.225" blue="0.27" />
|
||||
<color red="0.5" green="0.05" blue="0.15" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.64" height="0.64" />
|
||||
<color red="0.54" green="0.235" blue="0.295" />
|
||||
<color red="0.67" green="0.07" blue="0.2" />
|
||||
</disk>
|
||||
<disk state="8">
|
||||
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
|
||||
<color red="0.455" green="0.225" blue="0.27" />
|
||||
<color red="0.5" green="0.05" blue="0.15" />
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
@ -269,6 +273,7 @@ license:CC0-1.0
|
||||
<element ref="text_e~yi~~xi~"><bounds x="~xl~" y="~yl~" width="3" height="1.75" /></element>
|
||||
</repeat>
|
||||
</repeat>
|
||||
|
||||
<repeat count="5">
|
||||
<param name="y" start="10" increment="20" />
|
||||
<param name="yl" start="18.0" increment="20" />
|
||||
@ -298,7 +303,14 @@ license:CC0-1.0
|
||||
<element name="piece_c~i~" ref="piece"><bounds x="50" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_d~i~" ref="piece"><bounds x="70" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_e~i~" ref="piece"><bounds x="90" y="~y~" width="10" height="10" /></element>
|
||||
|
||||
<element name="piece_a~i~" ref="piece_sel"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_b~i~" ref="piece_sel"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_c~i~" ref="piece_sel"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_d~i~" ref="piece_sel"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_e~i~" ref="piece_sel"><bounds x="90" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="5">
|
||||
<param name="y" start="10" increment="20" />
|
||||
<param name="i" start="9" increment="-2" />
|
||||
@ -314,6 +326,12 @@ license:CC0-1.0
|
||||
<element name="piece_c~i~" ref="piece"><bounds x="40" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_d~i~" ref="piece"><bounds x="60" y="~y~" width="10" height="10" /></element>
|
||||
<element name="piece_e~i~" ref="piece"><bounds x="80" y="~y~" width="10" height="10" /></element>
|
||||
|
||||
<element name="piece_a~i~" ref="piece_sel"><bounds x="0" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_b~i~" ref="piece_sel"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_c~i~" ref="piece_sel"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_d~i~" ref="piece_sel"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
<element name="piece_e~i~" ref="piece_sel"><bounds x="80" y="~y~" width="10" height="10" /><color alpha="0.5" /></element>
|
||||
</repeat>
|
||||
</group>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user