was8bit 2022-01-01 10:34 (Edited)
TOUCH AND SWIPE AND LIFFT
This code demonstrates a method of letting player select a long connected selection of tiles, in all directions including diagonal
The tile selection is stored, in order of selection, and is processed when selection is finished...
Selection is automatically reset if swipe goes onto any portion of the existing selection...
A selection of only one tile is ignored... this allows player to redo their selection
was8bit 2022-01-01 10:45 (Edited)
This code only focuses on selecting tiles... one would need to create code that fills on the tiles with actual game pieces, and also code that changes the tiles based on the selection...
The selection is stored in XLINK(),YLINK() array index 1 to ILINK ... and tiles are coordinates 0,0 at the upper left corner to coordinates 9,7 at the lower right corner