Page 2 of 2
Re: Mining ideas / code from other games
Posted: 21 February 2021, 08:55
by Een
Ciffy wrote: ↑21 February 2021, 05:09
Yeah, it's more a matter of understanding how the piece data is stored so that it can be displayed from either side. Since I also don't know the framework, it's just a steeper curve. I'll get there though.
From memory, pieces coordinates are stored for both players as if the board was displayed always with the same orientation.
Then for the player for which the board needs to be rotated, we use some math to convert the coordinates for proper display with the rotated board.
Re: Mining ideas / code from other games
Posted: 21 February 2021, 14:21
by quietmint
Additionally, some projects are available to browse on GitHub
https://en.doc.boardgamearena.com/BGA_Code_Sharing