Ludii Forum
Suggest having a new piece type - pieces with mapping graphics - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Ludii Features / Services (https://ludii.games/forums/forumdisplay.php?fid=11)
+--- Thread: Suggest having a new piece type - pieces with mapping graphics (/showthread.php?tid=1656)



Suggest having a new piece type - pieces with mapping graphics - dale walton - 08-31-2023

several games have pieces with graphics that correspond with or map the movements the the piece is allowed to make. 
For example a piece with a square grid of holes that receive pegs that determine allowed moves, or simpler cases where the grid locations determining the allowed slides or leaps are fixed.

It would be very useful if the graphics for leaping, and/or sliding pieces could be automatically graphically generated fby Ludii from their movement capabilities.

I currently am designing a game in which I represent such abilities as coded text graphics, but it is far from intuitive to play it this way.  For example I us "2x N" to mean {{F R F R F} {F F R F} {F F L F}},
 But a pattern like below would express it more clearly.

x x - x x
x - - - x
- - 0 - -
x - - - x
x x - x x

If automatic implementation is not possible, how about a stop-gap by using multi-line fixed width text?

Edit:
I have also tried using multiple foreground text instructions for the same piece with different offsets, but the offsets seem to be ignored, even both texts are displayed (overlapping) - so this would be a rather cumbersome work-around if the offsets worked for multiple layers of foreground text on a single piece.

Edit2:
OK, This does work with square images, so if the script doesn't get too long, I can make it work -- would be nice for the future if it could be automated though...