damesc: update checkers pieces

This commit is contained in:
hap 2023-12-19 12:27:30 +01:00
parent 61ab1c2530
commit fdad8d351c
3 changed files with 119 additions and 66 deletions

View File

@ -4,6 +4,8 @@ license:CC0-1.0
-->
<mamelayout version="2">
<!-- NOTE: no checkers pieces simulation here -->
<!-- define elements -->
<element name="gray"><rect><color red="0.6" green="0.6" blue="0.6" /></rect></element>

View File

@ -4,6 +4,8 @@ license:CC0-1.0
-->
<mamelayout version="2">
<!-- NOTE: no checkers pieces simulation here -->
<!-- define elements -->
<element name="gray"><rect><color red="0.6" green="0.6" blue="0.6" /></rect></element>

View File

@ -108,8 +108,8 @@ license:CC0-1.0
<element name="text_pb"><text string="PB"><color red="0.17" green="0.15" blue="0.15" /></text></element>
<element name="text_rv"><text string="RV"><color red="0.17" green="0.15" blue="0.15" /></text></element>
<element name="text_lv"><text string="LV"><color red="0.17" green="0.15" blue="0.15" /></text></element>
<element name="text_wk"><text string="[K]"><color red="0.17" green="0.15" blue="0.15" /></text></element>
<element name="text_bk"><text string="[K]"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_wk"><text string="WK"><color red="0.17" green="0.15" blue="0.15" /></text></element> <!-- crown symbol -->
<element name="text_bk"><text string="BK"><color red="0.81" green="0.8" blue="0.79" /></text></element> <!-- crown symbol -->
<!-- sb board -->
@ -127,126 +127,175 @@ license:CC0-1.0
<element name="piece" defstate="0">
<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" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0" green="0" blue="0" />
</disk>
<disk state="1">
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="1" green="0.9" blue="0.6" />
</disk>
<disk state="1">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
<color red="0.9" green="0.72" blue="0.54" />
</disk>
<disk state="1">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<bounds xc="0.5" yc="0.5" width="0.6" height="0.6" />
<color red="1" green="0.9" blue="0.6" />
</disk>
<disk state="2">
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0" green="0" blue="0" />
</disk>
<disk state="2">
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="1" green="0.9" blue="0.6" />
</disk>
<disk state="2">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
<color red="0" green="0" blue="0" />
</disk>
<disk state="2">
<bounds xc="0.5" yc="0.4" width="0.76" height="0.76" />
<color red="1" green="0.9" blue="0.6" />
</disk>
<disk state="2">
<bounds xc="0.5" yc="0.4" width="0.64" height="0.64" />
<color red="0.9" green="0.72" blue="0.54" />
</disk>
<disk state="2">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
<color red="1" green="0.9" blue="0.6" />
</disk>
<text state="2" string="[K]">
<bounds x="0.13" y="0.28" width="0.8" height="0.4" />
<color red="0.75" green="0.4" blue="0" />
</text>
<disk state="3">
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<color red="0.3" green="0.1" blue="0" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0" green="0" blue="0" />
</disk>
<disk state="3">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<color red="0.4" green="0.2" blue="0.05" />
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="0.5" green="0.2" blue="0.05" />
</disk>
<disk state="3">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<color red="0.3" green="0.1" blue="0" />
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
<color red="0.67" green="0.27" blue="0.1" />
</disk>
<disk state="3">
<bounds xc="0.5" yc="0.5" width="0.6" height="0.6" />
<color red="0.5" green="0.2" blue="0.05" />
</disk>
<disk state="4">
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<color red="0.3" green="0.1" blue="0" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0" green="0" blue="0" />
</disk>
<disk state="4">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<color red="0.4" green="0.2" blue="0.05" />
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="0.5" green="0.2" blue="0.05" />
</disk>
<disk state="4">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<color red="0.3" green="0.1" blue="0" />
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
<color red="0" green="0" blue="0" />
</disk>
<disk state="4">
<bounds xc="0.5" yc="0.4" width="0.76" height="0.76" />
<color red="0.5" green="0.2" blue="0.05" />
</disk>
<disk state="4">
<bounds xc="0.5" yc="0.4" width="0.64" height="0.64" />
<color red="0.67" green="0.27" blue="0.1" />
</disk>
<disk state="4">
<bounds xc="0.5" yc="0.4" width="0.6" height="0.6" />
<color red="0.5" green="0.2" blue="0.05" />
</disk>
<text state="4" string="[K]">
<bounds x="0.13" y="0.28" width="0.8" height="0.4" />
<color red="0.75" green="0.2" blue="0" />
</text>
<!-- selected pieces -->
<disk state="5">
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<color red="0.7" green="0.63" blue="0.42" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0.205" green="0.2" blue="0.195" />
</disk>
<disk state="5">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<color red="0.63" green="0.504" blue="0.378" />
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="0.705" green="0.65" blue="0.495" />
</disk>
<disk state="5">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<color red="0.7" green="0.63" blue="0.42" />
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
<color red="0.65" green="0.56" blue="0.465" />
</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" />
</disk>
<disk state="6">
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<color red="0.7" green="0.63" blue="0.42" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0.205" green="0.2" blue="0.195" />
</disk>
<disk state="6">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<color red="0.63" green="0.504" blue="0.378" />
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="0.705" green="0.65" blue="0.495" />
</disk>
<disk state="6">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<color red="0.7" green="0.63" blue="0.42" />
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
<color red="0.205" green="0.2" blue="0.195" />
</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" />
</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" />
</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" />
</disk>
<text state="6" string="[K]">
<bounds x="0.13" y="0.28" width="0.8" height="0.4" />
<color red="0.525" green="0.28" blue="0" />
</text>
<disk state="7">
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<color red="0.44" green="0.28" blue="0.14" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0.205" green="0.2" blue="0.195" />
</disk>
<disk state="7">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<color red="0.52" green="0.36" blue="0.24" />
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="0.455" green="0.3" blue="0.22" />
</disk>
<disk state="7">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<color red="0.44" green="0.28" blue="0.14" />
<bounds xc="0.5" yc="0.5" width="0.64" height="0.64" />
<color red="0.54" green="0.335" blue="0.245" />
</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" />
</disk>
<disk state="8">
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<color red="0.44" green="0.28" blue="0.14" />
<bounds xc="0.5" yc="0.5" width="0.8" height="0.8" />
<color red="0.205" green="0.2" blue="0.195" />
</disk>
<disk state="8">
<bounds x="0.18" y="0.18" width="0.64" height="0.64" />
<color red="0.52" green="0.36" blue="0.24" />
<bounds xc="0.5" yc="0.5" width="0.76" height="0.76" />
<color red="0.455" green="0.3" blue="0.22" />
</disk>
<disk state="8">
<bounds x="0.2" y="0.2" width="0.6" height="0.6" />
<color red="0.44" green="0.28" blue="0.14" />
<bounds xc="0.5" yc="0.4" width="0.8" height="0.8" />
<color red="0.205" green="0.2" blue="0.195" />
</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" />
</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" />
</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" />
</disk>
<text state="8" string="[K]">
<bounds x="0.13" y="0.28" width="0.8" height="0.4" />
<color red="0.8" green="0.52" blue="0.14" />
</text>
</element>
<group name="sb_board">
@ -255,26 +304,26 @@ license:CC0-1.0
<!-- squares, labels -->
<repeat count="5">
<param name="y" start="0" increment="20" />
<param name="yl" start="7.5" increment="20" />
<param name="yl" start="7.65" increment="20" />
<param name="yi" start="0" increment="1" />
<repeat count="5">
<param name="x" start="10" increment="20" />
<param name="xl" start="15" increment="20" />
<param name="xi" start="0" increment="1" />
<element ref="cblack"><bounds x="~x~" y="~y~" width="10" height="10" /></element>
<element ref="text_e~yi~~xi~"><bounds x="~xl~" y="~yl~" width="4.8" height="2.35" /></element>
<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.5" increment="20" />
<param name="yl" start="17.65" increment="20" />
<param name="yi" start="0" increment="1" />
<repeat count="5">
<param name="x" start="0" increment="20" />
<param name="xl" start="5" increment="20" />
<param name="xi" start="0" increment="1" />
<element ref="cblack"><bounds x="~x~" y="~y~" width="10" height="10" /></element>
<element ref="text_o~yi~~xi~"><bounds x="~xl~" y="~yl~" width="4.8" height="2.35" /></element>
<element ref="text_o~yi~~xi~"><bounds x="~xl~" y="~yl~" width="4.9" height="2.35" /></element>
</repeat>
</repeat>
@ -435,8 +484,8 @@ license:CC0-1.0
<element ref="text_lv"><bounds x="108" y="36.5" width="5" height="3" /></element>
<element ref="text_cl"><bounds x="108" y="46.5" width="5" height="3" /></element>
<element ref="text_rv"><bounds x="108" y="56.5" width="5" height="3" /></element>
<element ref="text_wk"><bounds x="108.5" y="76.2" width="4.5" height="3" /></element>
<element ref="text_bk"><bounds x="108.5" y="96.2" width="4.5" height="3" /></element>
<element ref="text_wk"><bounds x="108" y="76.5" width="5" height="3" /></element>
<element ref="text_bk"><bounds x="108" y="96.5" width="5" height="3" /></element>
<element ref="hlb" inputtag="IN.1" inputmask="0x10"><bounds x="107" y="14.5" width="7" height="7" /><color alpha="0.3" /></element>
<element ref="hlb" inputtag="IN.1" inputmask="0x20"><bounds x="107" y="24.5" width="7" height="7" /><color alpha="0.3" /></element>