Browse Source

update map 003 with interiors

Bastien Sevajol 6 years ago
parent
commit
f33a939323

+ 3 - 0
.gitignore View File

@@ -72,3 +72,6 @@ ENV/
72 72
 
73 73
 # mypy
74 74
 .mypy_cache/
75
+
76
+# other
77
+*~

+ 0 - 0
README.md View File


+ 1 - 0
config.yaml View File

@@ -13,4 +13,5 @@ game:
13 13
         run_ref_time: 1
14 14
         crawl_ref_time: 10
15 15
 global:
16
+    logging_level: DEBUG
16 17
     debug: true

+ 70 - 22
opencc/maps/003/003.tmx View File

@@ -2,10 +2,58 @@
2 2
 <map version="1.0" tiledversion="2017.07.26" orientation="orthogonal" renderorder="left-up" width="70" height="40" tilewidth="8" tileheight="8" nextobjectid="4">
3 3
  <tileset firstgid="1" source="trees_64x64.tsx"/>
4 4
  <tileset firstgid="10" source="terrain.tsx"/>
5
+ <tileset firstgid="59" source="interiors.tsx"/>
6
+ <imagelayer name="interiors">
7
+  <image source="background_interiors.png" width="560" height="320"/>
8
+ </imagelayer>
5 9
  <imagelayer name="background">
6 10
   <image source="background.png" width="560" height="320"/>
7 11
  </imagelayer>
8
- <layer name="terrain" width="70" height="40" opacity="0.3">
12
+ <layer name="interiors" width="70" height="40" opacity="0.53">
13
+  <data encoding="csv">
14
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
15
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
16
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,
17
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,
18
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,
19
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,
20
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,
21
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,
22
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,
23
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,0,0,60,60,60,60,60,60,60,60,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
39
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,0,0,60,60,60,60,60,60,60,60,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
40
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,0,0,60,60,60,60,60,60,60,60,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
41
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,60,0,60,60,60,60,60,60,60,60,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
42
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,61,0,0,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
43
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
44
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,61,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
45
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,
46
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
47
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
48
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
49
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
50
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,60,61,60,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
51
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,60,61,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,60,60,61,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
53
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,60,60,60,60,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
54
+</data>
55
+ </layer>
56
+ <layer name="terrain" width="70" height="40" opacity="0.46">
9 57
   <data encoding="csv">
10 58
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
11 59
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
@@ -20,27 +68,27 @@
20 68
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,
21 69
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
22 70
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
23
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
24
-10,10,10,10,11,11,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
25
-10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
26
-10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
27
-10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
28
-10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
29
-10,10,10,10,11,0,0,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
30
-10,10,10,10,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
31
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
32
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,10,10,10,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,
33
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,0,0,0,11,10,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
34
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,11,10,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
35
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,11,11,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
36
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,0,0,0,0,0,11,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
37
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,11,10,10,11,11,11,11,11,11,11,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
38
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,10,10,11,11,11,0,0,0,0,0,11,11,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
39
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,0,0,0,11,11,11,11,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
40
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
41
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,
42
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
43
-10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
71
+10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
72
+10,10,10,10,11,11,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
73
+10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
74
+10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
75
+10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
76
+10,10,10,10,11,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
77
+10,10,10,10,11,0,0,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
78
+10,10,10,10,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
79
+10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
80
+10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,11,11,11,11,11,10,10,10,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,
81
+10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,11,11,11,0,0,0,11,10,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
82
+10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,11,0,0,0,0,0,11,10,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
83
+10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,11,11,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
84
+10,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,10,10,10,10,10,11,11,0,0,0,0,0,11,10,10,11,0,0,0,0,0,0,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
85
+12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,11,10,10,11,11,11,11,11,11,11,11,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
86
+12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,10,10,11,11,11,11,11,10,10,11,11,11,0,0,0,0,0,11,11,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
87
+12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,11,11,11,11,11,0,0,0,11,11,11,11,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
88
+12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,10,10,11,11,11,11,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,11,10,10,10,10,10,10,10,
89
+12,12,12,12,12,12,12,12,12,12,12,10,10,10,10,11,11,11,11,11,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,10,10,10,10,10,10,10,
90
+12,12,12,12,12,12,12,12,10,10,10,10,10,10,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
91
+12,12,12,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
44 92
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
45 93
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
46 94
 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,0,0,0,0,0,0,0,0,0,0,0,11,11,11,11,11,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,

BIN
opencc/maps/003/background_interiors.png View File


BIN
opencc/maps/003/interiors.png View File


+ 22 - 0
opencc/maps/003/interiors.tsx View File

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<tileset name="interiors" tilewidth="8" tileheight="8" spacing="1" tilecount="49" columns="7">
3
+ <image source="interiors.png" width="64" height="64"/>
4
+ <tile id="0">
5
+  <properties>
6
+   <property name="name" type="str" value="Exterior"/>
7
+   <property name="id" type="str" value="ext"/>
8
+  </properties>
9
+ </tile>
10
+ <tile id="1">
11
+  <properties>
12
+   <property name="name" type="str" value="interior"/>
13
+   <property name="id" type="str" value="int"/>
14
+  </properties>
15
+ </tile>
16
+ <tile id="2">
17
+  <properties>
18
+   <property name="name" type="str" value="separator"/>
19
+   <property name="id" type="str" value="sep"/>
20
+  </properties>
21
+ </tile>
22
+</tileset>

BIN
opencc/maps/003/terrain.png View File


+ 8 - 0
opencc/maps/003/terrain.tsx View File

@@ -18,5 +18,13 @@
18 18
    <property name="opacity" type="float" value="100.0"/>
19 19
    <property name="height" type="float" value="2.0"/>
20 20
   </properties>
21
+ <tile id="2">
22
+  <properties>
23
+   <property name="name" type="str" value="Bitume"/>
24
+   <property name="traversable_by_man" type="bool" value="true"/>
25
+   <property name="traversable_by_vehicle" type="bool" value="true"/>
26
+   <property name="opacity" type="float" value="0.0"/>
27
+   <property name="height" type="float" value="0.0"/>
28
+  </properties>
21 29
  </tile>
22 30
 </tileset>

+ 2 - 2
requirements.txt View File

@@ -1,5 +1,4 @@
1 1
 attrs==17.3.0
2
-cocos2d==0.6.5
3 2
 Dijkstar==2.3.0
4 3
 freezegun==0.3.9
5 4
 future==0.16.0
@@ -13,5 +12,6 @@ python-dateutil==2.6.1
13 12
 PyYAML==3.12
14 13
 redis==2.10.6
15 14
 six==1.11.0
16
-synergine2==1.0
17 15
 tmx==1.9.1
16
+git+https://github.com/buxx/synergine2.git@master
17
+git+https://github.com/buxx/cocos.git@tileset

+ 2 - 1
run.py View File

@@ -28,7 +28,8 @@ def main(map_dir_path: str, seed_value: int=None):
28 28
 
29 29
     config = Config()
30 30
     config.load_yaml('config.yaml')
31
-    logger = get_default_logger(level=logging.ERROR)
31
+    level = logging.getLevelName(config.resolve('global.logging_level', 'ERROR'))
32
+    logger = get_default_logger(level=level)
32 33
 
33 34
     map_file_path = get_map_file_path_from_dir(map_dir_path)
34 35
 

+ 10 - 0
t.py View File

@@ -0,0 +1,10 @@
1
+from cocos.director import director
2
+from cocos.tiles import load
3
+from cocos.layer import ScrollingManager
4
+from cocos.scene import Scene
5
+
6
+director.init()
7
+a = load("/home/bux/Projets/OpenCC/opencc/maps/003/003.tmx")["top"]
8
+scroller = ScrollingManager()
9
+scroller.add(a)
10
+director.run(Scene(scroller))