Browse Source

add forgotten test fixtures

Bastien Sevajol 7 years ago
parent
commit
be3003de39
3 changed files with 62 additions and 0 deletions
  1. 40 0
      tests/fixtures/map_001.tmx
  2. BIN
      tests/fixtures/terrain.png
  3. 22 0
      tests/fixtures/terrain.tsx

+ 40 - 0
tests/fixtures/map_001.tmx View File

@@ -0,0 +1,40 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<map version="1.0" tiledversion="2017.07.26" orientation="orthogonal" renderorder="left-up" width="5" height="5" tilewidth="8" tileheight="8" nextobjectid="1">
3
+ <tileset firstgid="1" source="terrain.tsx"/>
4
+ <layer name="Calque de Tile 1" width="5" height="5">
5
+  <data encoding="csv">
6
+0,0,0,0,0,
7
+0,0,0,0,0,
8
+0,0,0,0,0,
9
+0,0,0,0,0,
10
+0,0,0,0,0
11
+</data>
12
+ </layer>
13
+ <layer name="terrain" width="5" height="5">
14
+  <data encoding="csv">
15
+1,1,1,1,1,
16
+1,2,2,2,1,
17
+1,2,1,2,1,
18
+1,2,2,2,1,
19
+1,1,1,1,1
20
+</data>
21
+ </layer>
22
+ <layer name="ground" width="5" height="5">
23
+  <data encoding="csv">
24
+0,0,0,0,0,
25
+0,0,0,0,0,
26
+0,0,0,0,0,
27
+0,0,0,0,0,
28
+0,0,0,0,0
29
+</data>
30
+ </layer>
31
+ <layer name="top" width="5" height="5">
32
+  <data encoding="csv">
33
+0,0,0,0,0,
34
+0,0,0,0,0,
35
+0,0,0,0,0,
36
+0,0,0,0,0,
37
+0,0,0,0,0
38
+</data>
39
+ </layer>
40
+</map>

BIN
tests/fixtures/terrain.png View File


+ 22 - 0
tests/fixtures/terrain.tsx View File

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<tileset name="terrain" tilewidth="8" tileheight="8" spacing="1" tilecount="49" columns="7">
3
+ <image source="terrain.png" width="64" height="64"/>
4
+ <tile id="0">
5
+  <properties>
6
+   <property name="name" type="str" value="Grass"/>
7
+   <property name="traversable_by_man" type="bool" value="true"/>
8
+   <property name="traversable_by_vehicle" type="bool" value="true"/>
9
+   <property name="opacity" type="float" value="0.0"/>
10
+   <property name="height" type="float" value="0.0"/>
11
+  </properties>
12
+ </tile>
13
+ <tile id="1">
14
+  <properties>
15
+   <property name="name" type="str" value="Wood wall"/>
16
+   <property name="traversable_by_man" type="bool" value="false"/>
17
+   <property name="traversable_by_vehicle" type="bool" value="false"/>
18
+   <property name="opacity" type="float" value="100.0"/>
19
+   <property name="height" type="float" value="2.0"/>
20
+  </properties>
21
+ </tile>
22
+</tileset>