Mining ideas / code from other games

Game development with Board Game Arena Studio
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Mining ideas / code from other games

Post 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.
User avatar
quietmint
Posts: 299
Joined: 31 July 2017, 00:28

Re: Mining ideas / code from other games

Post by quietmint »

Additionally, some projects are available to browse on GitHub

https://en.doc.boardgamearena.com/BGA_Code_Sharing
Post Reply

Return to “Developers”