Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualhplus0603

Posted 12 September 2012 - 09:55 PM

I would store each item in inventory, together with the position of the top/left coordinate of the item. This only needs 10 bits per item (5 bits for X, 5 bits for Y.) The size of the item should already be known by the client based on the item type.
I would send the full inventory on connect, and only send delta updates when the inventory changes, to minimize traffic.

#1hplus0603

Posted 12 September 2012 - 09:55 PM

I would store each item in inventory, together with the position of the top/left coordinate of the item. This only needs 10 bits per item (5 bits for X, 5 bits for Y.) The size of the item should already be known by the client based on the item type.
I would send the full inventory on connect, and only send updates when the inventory changes, to minimize traffic.

PARTNERS