MAMEWorld >> MAME Artwork X: Other Artwork Projects
View all threads Index   Threaded Mode Threaded  

Pages: 1

wemr97dl
MAME Fan
Reged: 04/25/21
Posts: 218
Send PM


The Legend of Cage
#398498 - 05/20/24 09:32 AM Attachment: The Legend of Kage [lkage] - .jpg 334 KB (1 downloads)


The Legend of Kage
Had to build the Control Panel from scratch using the pic shown. I did borrow the grass pattern from the bezel done by Mr.Retrolust from Mr.Do's.

Layfile note:
the Mame artwork system reads inputs i/o in groups of 4
In the taito/lkage.cpp the Joystick imports are spread across the first and second groups in binary it would be 1111 1111 because its active low, active High would be all zero's.

PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )

Normaly I have been using a script mostly just to move the inputs into a group of 4
to read the joystick inputs, but you don't have to using the input mask.

inputmask="0x3c"





if you convert the 4 bits in each to hexidecimal
you need the 3 and fourth bit of the first set 0011=3
the first and second bit in the second set 1100 = c
most of the time your using a mask of f=1111 all four bits.

hope that helps someone its a lot easier than writing the script.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



My Mame Artwork
https://drive.google.com/drive/folders/1OP43Qk_2uCIJ7HLY2maemAmJHtu9kbyV?usp=share_link



mhoes
MAME Fan
Reged: 08/27/15
Posts: 170
Send PM


Re: The Legend of Cage new [Re: wemr97dl]
#398499 - 05/20/24 02:06 PM


I've never paid that much attention to the art side of mame, as I tend to play without the art. But this piece is truly amazing, given the source material you had to work with.



wemr97dl
MAME Fan
Reged: 04/25/21
Posts: 218
Send PM


Re: The Legend of Cage new [Re: mhoes]
#398500 - 05/20/24 08:40 PM


Thanks



My Mame Artwork
https://drive.google.com/drive/folders/1OP43Qk_2uCIJ7HLY2maemAmJHtu9kbyV?usp=share_link


Pages: 1

MAMEWorld >> MAME Artwork X: Other Artwork Projects
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Mr. Do 
0 registered and 20 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 180