1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
<?xml version="1.0" encoding="utf-8"?>
<!--
TMX version 1.1 by
Tiled Developers (mapeditor.org)
documented in dtd form originally by
Olivier.Beaton@quadir.net
Creative Commons Attribution 3.0
http://creativecommons.org/licenses/by/3.0/
last updated on
2011-06-06
-->
<!ELEMENT map (properties?, tileset*, (layer | objectgroup)*)>
<!ATTLIST map
xmlns CDATA #IMPLIED
xmlns:xsi CDATA #IMPLIED
xsi:schemaLocation CDATA #IMPLIED
version CDATA #REQUIRED
orientation (orthogonal | isometric | staggered | hexagonal | shifted) #REQUIRED
renderorder (right-down | right-up | left-down | left-up)
width CDATA #REQUIRED
height CDATA #REQUIRED
tilewidth CDATA #REQUIRED
tileheight CDATA #REQUIRED
>
<!ELEMENT properties (property*)>
<!ELEMENT property EMPTY>
<!ATTLIST property
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!--
data is required when a child of tilset
data is not valid when a child of tile
-->
<!ELEMENT image (data?)>
<!--
format is required when a child of tileset
format is not valid when a child of tile
source here is required when tileset tileheight/tilewidth -> image is used and you are referencing an outside image
-->
<!ATTLIST image
format CDATA #IMPLIED
id CDATA #IMPLIED
source CDATA #IMPLIED
trans CDATA #IMPLIED
width CDATA #IMPLIED
height CDATA #IMPLIED
>
<!--
#PCDATA when data is child of image
tile* when data is child of layer without compression
-->
<!ELEMENT data (#PCDATA | tile)*>
<!ATTLIST data
encoding CDATA #IMPLIED
compression CDATA #IMPLIED
>
<!ELEMENT tileset (image*, tile*)>
<!--
name REQUIRED only if source tsx not present
source here refers to a TSX
-->
<!ATTLIST tileset
name CDATA #IMPLIED
firstgid CDATA #REQUIRED
source CDATA #IMPLIED
tilewidth CDATA #IMPLIED
tileheight CDATA #IMPLIED
spacing CDATA #IMPLIED
margin CDATA #IMPLIED
>
<!--
image required when child of all but layer -> data
image not valid when child of layer -> data
-->
<!ELEMENT tile (properties?, image?)>
<!--
id required when child of all but layer -> data
id not valid when child of layer -> data
gid required when child of layer -> data
gid not valid when not child of layer -> data
-->
<!ATTLIST tile
id CDATA #IMPLIED
gid CDATA #IMPLIED
>
<!ELEMENT layer (properties?, data)>
<!ATTLIST layer
name CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED
x CDATA #IMPLIED
y CDATA #IMPLIED
opacity CDATA #IMPLIED
visible (0 | 1) #IMPLIED
>
<!ELEMENT objectgroup (properties?, object*)>
<!ATTLIST objectgroup
name CDATA #REQUIRED
width CDATA #IMPLIED
height CDATA #IMPLIED
x CDATA #IMPLIED
y CDATA #IMPLIED
opacity CDATA #IMPLIED
visible (0 | 1) #IMPLIED
>
<!ELEMENT object (properties?)>
<!ATTLIST object
name CDATA #IMPLIED
type CDATA #IMPLIED
x CDATA #REQUIRED
y CDATA #REQUIRED
width CDATA #IMPLIED
height CDATA #IMPLIED
gid CDATA #IMPLIED
>
|