Implementing the item panel
Item panel is a place where players organize their items. The following graph shows how we composite the item panel in Flash. The panel consists of a close button and 19 item slots. The itemSlot0
and itemSlot1
represent both hands, and itemSlot2
represent the riding. Players can arrange items within slots. They can put riding item in the riding slot. Riding item is a special item that players can ride on for faster movement. We are going to query items from server-side and display them in this panel according to the position.
Loading the item definition
Similar to the buildings in the previous chapter, we have a definition ...
Get Flash Multiplayer Virtual Worlds now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.