|
|
MAME now supports state masks, so components can be conditionally drawn depending on selected bits of the element state. Here’s an example using it to show 7-segment displays with external artwork, without needing hundreds of images for all possible states. This also shows alpha blending within an element.
Start the 705p3prg system, hit button 1 to make it start counting, go into video options, and switch views. You can use the built-in 7-segment digits, or two different styles using external images.
This example has active-high outputs, so it only needs statemask attributes. You handle active-low outputs with statemask="0x02" state="0" etc.
|
|