Fix level converter tool
authorDavid.Sharpe <david.sharpe@Daves-MBP.lan>
Sat, 5 Mar 2016 16:10:53 +0000 (18:10 +0200)
committerDavid.Sharpe <david.sharpe@Daves-MBP.lan>
Sat, 5 Mar 2016 16:10:53 +0000 (18:10 +0200)
koperkapel/levels/l2
koperkapel/levels/level_converter.py
koperkapel/levels/t2

index bbfed4a23ebf9b5f3db8af9ad60701867078d44e..d53575e37a6125814febc0d65003ca220c640090 100644 (file)
@@ -1,21 +1,5 @@
-wwwwwwwwwwwwwwwwwwwwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wsfffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wffffffffffffffffffwwwwwwwwww
-wwwwwwwwwwwwwwwwwwwwwwwwwwwww
\ No newline at end of file
+wwwwwwwwww
+wffffffffw
+wsgffgfffw
+wffffffffw
+wwwwwwwwww
\ No newline at end of file
index 3f195a240f77a8bfddc6e6673650b17294e81472..8949de6267c129ebf1f79a77469654be33fe57dd 100644 (file)
@@ -6,7 +6,7 @@ ATTRIBUTE_MAP = {
                     'behaviour': ['walk', 'fly'],
                     },
           },
-    'w': {'floor': {'base': 'floor',
+    'w': {'floor': {'base': 'cwall',
                     'behaviour': [],
                     },
           },
@@ -19,7 +19,7 @@ ATTRIBUTE_MAP = {
                       }
           },
     '-': {'tunnels': {'base': 'tunnel',
-                      'behaviour': ['walk', ],
+                      'behaviour': ['crawl', ],
                       },
           },
     'f': {'floor': {'base': 'floor',
@@ -31,7 +31,7 @@ ATTRIBUTE_MAP = {
                     },
           },
     'g': {'floor': {'base': 'floor',
-                    'behaviour': ['walk', 'fly'],
+                    'behaviour': ['walk', 'fly', 'crawl'],
                     },
           },
     'k': {'floor': {'base': 'floor',
@@ -84,7 +84,7 @@ class level_generator:
                             tile.update(ATTRIBUTE_MAP[t2])
                             row.append(tile)
                         if t1 == 's':
-                            level['starting pos'] = [len(level) - 1, len(row) - 1]
+                            level['starting pos'] = [len(row) - 1, len(level['tiles']) - 1]
                         # if t2 == 'd'
                     level['tiles'].append(row)
                 # Crude hack so the level is written into the levels folder
index 91c04f5e1c509e90b7ab58dec802ea6292589216..f40189620ff5c3d4e78d2473e1729141f40219bc 100644 (file)
@@ -1,21 +1,5 @@
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-tsttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
-ttttttttttttttttttttttttttttt
\ No newline at end of file
+tttttttttt
+tttttttttt
+tt-----ttt
+tttttttttt
+tttttttttt
\ No newline at end of file