source: trunk/game/maps/shanty.xml @ 387

Revision 384, 6.0 KB checked in by barra_parpg, 10 years ago (diff)

Patch by mvbarracuda:

  • Discovered base tile size problems, perfect isometric tiles are width = height*2; therefore 72*36 is correct, not 72*38
  • The new reference tile size should also fix problems with 1px gaps between the tiles
  • Now the grid (press t) seems to perfectly allign with our tiles
  • Property svn:eol-style set to native
Line 
1<?xml version="1.0" encoding="ascii"?>
2<map id="my-map" format="1.0">
3    <!-- Firstly import all the gfx objects we need for this map -->
4        <import file="../objects/agents/player/player.xml"></import>
5        <import file="../objects/ground/brick/brick.xml"></import>
6
7    <!-- Import the purely visual objects -->
8    <import file="../objects/ground/walls/wall_rear/wall-up.xml"></import>
9    <import file="../objects/ground/walls/wall_rear/wall-down.xml"></import>
10    <import file="../objects/ground/walls/wall_rear/wall-top.xml"></import>
11    <import file="../objects/ground/walls/wall_rear/wall-right.xml"></import>
12    <import file="../objects/ground/walls/wall_rear/wall-left.xml"></import>
13    <import file="../objects/ground/walls/wall_front/wall-up.xml"></import>
14    <import file="../objects/ground/walls/wall_front/wall-down.xml"></import>
15    <import file="../objects/ground/walls/wall_front/wall-bottom.xml"></import>
16    <import file="../objects/ground/block/block.xml"></import>
17    <import file="../objects/ground/doors/floor.xml"></import>
18
19        <layer grid_type="square" id="GroundLayer" x_scale="1.0" pathing="cell_edges_only" y_scale="1.0" rotation="0.0" x_offset="0.0" y_offset="0.0">
20                <instances>
21            <i x="-3.0" o="brick" z="0.0" y="-3.0" r="0" ns="PARPG"></i>
22            <i x="-2.0" o="brick" z="0.0" y="-3.0" r="0"></i>
23            <i x="-1.0" o="brick" z="0.0" y="-3.0" r="0"></i>
24            <i x="0.0" o="brick" z="0.0" y="-3.0" r="0"></i>
25            <i x="1.0" o="brick" z="0.0" y="-3.0" r="0"></i>
26            <i x="2.0" o="brick" z="0.0" y="-3.0" r="0"></i>
27            <i x="3.0" o="brick" z="0.0" y="-3.0" r="0"></i>
28            <i x="4.0" o="brick" z="0.0" y="-3.0" r="0"></i>
29
30            <i x="-3.0" o="brick" z="0.0" y="-2.0" r="0"></i>
31            <i x="-2.0" o="brick" z="0.0" y="-2.0" r="0"></i>
32            <i x="-1.0" o="brick" z="0.0" y="-2.0" r="0"></i>
33            <i x="0.0" o="brick" z="0.0" y="-2.0" r="0"></i>
34            <i x="1.0" o="brick" z="0.0" y="-2.0" r="0"></i>
35            <i x="2.0" o="brick" z="0.0" y="-2.0" r="0"></i>
36            <i x="3.0" o="brick" z="0.0" y="-2.0" r="0"></i>
37            <i x="4.0" o="brick" z="0.0" y="-2.0" r="0"></i>
38
39            <i x="-3.0" o="brick" z="0.0" y="-1.0" r="0"></i>
40            <i x="-2.0" o="brick" z="0.0" y="-1.0" r="0"></i>
41            <i x="-1.0" o="brick" z="0.0" y="-1.0" r="0"></i>
42            <i x="0.0" o="brick" z="0.0" y="-1.0" r="0"></i>
43            <i x="1.0" o="brick" z="0.0" y="-1.0" r="0"></i>
44            <i x="2.0" o="brick" z="0.0" y="-1.0" r="0"></i>
45            <i x="3.0" o="brick" z="0.0" y="-1.0" r="0"></i>
46            <i x="4.0" o="brick" z="0.0" y="-1.0" r="0"></i>
47
48            <i x="-3.0" o="brick" z="0.0" y="0.0" r="0"></i>
49            <i x="-2.0" o="brick" z="0.0" y="0.0" r="0"></i>
50            <i x="-1.0" o="brick" z="0.0" y="0.0" r="0"></i>
51            <i x="0.0" o="brick" z="0.0" y="0.0" r="0"></i>
52            <i x="1.0" o="brick" z="0.0" y="0.0" r="0"></i>
53            <i x="2.0" o="brick" z="0.0" y="0.0" r="0"></i>
54            <i x="3.0" o="brick" z="0.0" y="0.0" r="0"></i>
55            <i x="4.0" o="brick" z="0.0" y="0.0" r="0"></i>
56
57            <i x="-3.0" o="brick" z="0.0" y="1.0" r="0"></i>
58            <i x="-2.0" o="brick" z="0.0" y="1.0" r="0"></i>
59            <i x="-1.0" o="brick" z="0.0" y="1.0" r="0"></i>
60            <i x="0.0" o="brick" z="0.0" y="1.0" r="0"></i>
61            <i x="1.0" o="brick" z="0.0" y="1.0" r="0"></i>
62            <i x="2.0" o="brick" z="0.0" y="1.0" r="0"></i>
63            <i x="3.0" o="brick" z="0.0" y="1.0" r="0"></i>
64            <i x="4.0" o="brick" z="0.0" y="1.0" r="0"></i>
65
66            <i x="-3.0" o="brick" z="0.0" y="2.0" r="0"></i>
67            <i x="-2.0" o="brick" z="0.0" y="2.0" r="0"></i>
68            <i x="-1.0" o="block" z="0.0" y="2.0" r="0"></i>
69            <i x="0.0" o="brick" z="0.0" y="2.0" r="0"></i>
70            <i x="1.0" o="brick" z="0.0" y="2.0" r="0"></i>
71            <i x="2.0" o="brick" z="0.0" y="2.0" r="0"></i>
72            <i x="3.0" o="brick" z="0.0" y="2.0" r="0"></i>
73            <i x="4.0" o="brick" z="0.0" y="2.0" r="0"></i>
74                </instances>
75        </layer>
76
77        <layer x_offset="0.0" pathing="cell_edges_and_diagonals" y_offset="0.0" grid_type="square" id="ObjectLayer" x_scale="1" y_scale="1" rotation="0.0">
78                <instances>
79                    <!-- Some objects are just plain visual aids -->
80                    <i x="-3.0" y="-3.0" z="0.0" r="0" o="wall-rear-left"></i>
81            <i x="-2.0" y="-3.0" z="0.0" r="0" o="wall-rear-up"></i>
82            <i x="-1.0" y="-3.0" z="0.0" r="0" o="wall-rear-up"></i>
83            <i x="0.0" y="-3.0" z="0.0" r="0" o="wall-rear-up"></i>
84            <i x="1.0" y="-3.0" z="0.0" r="0" o="wall-rear-up"></i>
85            <i x="2.0" y="-3.0" z="0.0" r="0" o="wall-rear-up"></i>
86            <i x="3.0" y="-3.0" z="0.0" r="0" o="wall-rear-up"></i>
87           
88            <i x="4.0" y="-2.0" z="0.0" r="0" o="wall-rear-down"></i>
89            <i x="4.0" y="-1.0" z="0.0" r="0" o="wall-rear-down"></i>
90            <i x="4.0" y="0.0" z="0.0" r="0" o="wall-rear-down"></i>
91            <i x="4.0" y="1.0" z="0.0" r="0" o="wall-rear-down"></i>
92            <i x="4.0" y="2.0" z="0.0" r="0" o="wall-rear-right"></i>
93            <i x="4.0" y="-3.0" z="0.0" r="0" o="wall-rear-top"></i>
94
95            <i x="-2.0" y="2.0" z="0.0" r="0" o="wall-front-up"></i>
96            <i x="0.0" y="2.0" z="0.0" r="0" o="wall-front-up"></i>
97            <i x="1.0" y="2.0" z="0.0" r="0" o="wall-front-up"></i>
98            <i x="2.0" y="2.0" z="0.0" r="0" o="wall-front-up"></i>
99            <i x="3.0" y="2.0" z="0.0" r="0" o="wall-front-up"></i>
100           
101            <i x="-3.0" y="-2.0" z="0.0" r="0" o="wall-front-down"></i>
102            <i x="-3.0" y="-1.0" z="0.0" r="0" o="wall-front-down"></i>
103            <i x="-3.0" y="0.0" z="0.0" r="0" o="wall-front-down"></i>
104            <i x="-3.0" y="1.0" z="0.0" r="0" o="wall-front-down"></i>
105            <i x="-3.0" y="2.0" z="0.0" r="0" o="wall-front-bottom"></i>
106                </instances>
107        </layer>
108
109        <camera ref_cell_width="72" zoom="1.0" tilt="-60.0" id="main" ref_layer_id="ObjectLayer" ref_cell_height="36" rotation="45.0">
110        </camera>
111</map>
112
Note: See TracBrowser for help on using the repository browser.