The LevelEditor saves a level as an XML document that contains descriptions of everything about the level. A level file has the .lvl file extension.
These are some items commonly found in an LVL file:
To create an LVL file:
You can use any text editor to view the XML source within an LVL file.
Important: Do not modify the content of the LVL file outside the LevelEditor. Changing the XML within this file can corrupt the saved level.
Example: The XML content of a simple document should look similar to the XML shown below. This LVL file is fairly short because it contains only a single game object; LVL files with additional resources and objects are more complex.
<?xml version="1.0" encoding="utf-8"?> <game xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Game" xmlns="gap"> <gameObjectFolder name="Game Objects" visible="true" locked="false" displayFlags="0"> <gameObject xsi:type="orcType" transform="1 0 0 0 0 1 0 0 0 0 1 0 8.148263 8.635567 8.18291 1" translate="8.148263 8.635567 8.18291" rotate="0 0 0" scale="1 1 1" pivot="0 0 0" name="Orc" visible="true" locked="false" weight="0" emotion="0" goals="0" color="0" toeColor="0"> <geometry uri="Sample 3d models/Atgi assets/hybrid.atgi" /> </gameObject> </gameObjectFolder> <prototypeFolder name="RootProtoFolder" /> <layers /> <bookmarks /> <grid size="20" subdivisions="20" height="0" snap="false" visible="true" /> </game> |