خرید بک لینک

Vote count: 0

i've been trying to use firebase to create a simple 2 player generic trading card game player. however, i'm finding myself stuck on the client/server logic.

i want the interfaces of the 2 players to display the board from their perspective (like you'd see on MTGO).

in my pseudo coding, i've been toying with the following client-side logic:

opponent.on("change-in-hand-or-board)",function(){
  renderChangesInMyClient();
})

this makes sense to me logically, but i can't seem to translate the idea to code. specifically, what are best practices for storing and displaying two different perspectives on the same "board"?

asked 54 secs ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 24 اسفند 1394 ساعت: 9:34

صفحه بندی