## Tutorial 2: Chest Full of Treasure

In this tutorial, we gonna make simple game level, then we'll add some items to container object,
and see how it all behaves in the game.
Start Level Editor.
You should be comfortable with laying objects around by now, so layout a simple map.
Add barrel model from the Static tab. In the properties window click on the button
"Add Container Content" (make sure barrel is selected!).
In the popup window, select few items to add to the container.
Click Ok. Save the map.
In the bin directory, open game_config.xml for edit and change 'mapfile' attribute.
Instead of existing path "maps/temp/default_map.irr" type in your map file and path to it,
for example: "maps/my_maps_folder/second_map.irr".
Start Game_02.exe from bin directory.
You should see your map loaded.
Walk the character to the container and click on it.
Get the prescious items to you inventory! Try putting them back to container.
Advanced Topics:
----------------
To understand how this feature works, check out container content xml files (cc_mapname_id.xml)
that are stored together with your map file. These are automatically generated files once you
add some content to container.When game opens the map (irr file) it checks if any of the nodes
are container objects. If they are, it searches for xml file describing their content.
File name contains ID of the container node, and ID of the map it belongs to.
Petar Bajic
MPE (C) All Rights Reserved
Homepage: www.mystic-peanut.com
July, 21 2008.