August 2010
Intermediate to advanced
412 pages
8h 59m
English
We will now create a basic data structure of items for our virtual world. Each item has its own type ID, name, description, and corresponding class name in Flash. This item definition is normally stored in the server and the client will get a copy of the latest item definition every time he or she logs in.
<itemData> <item id='1001'> <name>Water Element</name> <classname>ItemWater</classname> <description>A very basic element of the world. </description> </item> <item id='1002'> <name>Fire Element</name> <classname>ItemFire</classname> <description>A very basic element of the world. </description> </item> <item id='1003'> <name>Land Element</name> <classname>ItemLand</classname> <description>A very ...
Read now
Unlock full access