Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

multiplayer chess game, board data sync question

$
0
0
Hello,

I am making a multiplayer chess game. I would like to ask what is the best way to share the board data? For example I have a 2d array of tile prefab objects that I am spawning the pieces on. My problem is that I have 2 separate local instances of this tile array.

I would like to ask what would be the best approach for that case? should I create another 2d array of strings (ids) for example and retain both in parallel? or there is a better approach? Having 2 different arrays feels a bit wrong.

Thanks

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>