Commits

Anonymous committed 522aa06

Updated to use new MapHandler signature.

Comments (0)

Files changed (1)

examples/23_supermap.py

     # 2 gives smoothest loading, highest cache hits
     collapse_level = (4,4)
     
+    def __init__(self, name, map_file_name):
+        super(TiledMapHandler, self).__init__(name)
+        self.map_file_name = map_file_name
+    
     def load(self):
         try:
             self.map = TiledMap(
-                data.filepath('map',self.map_file), collapse=self.collapse_level)
+                data.filepath('map', self.map_file_name),
+                collapse=self.collapse_level)
         except pygame.error:
             print('Sorry! Gummworld2 cannot include The Mana World assets' +
                   ' due to licensing.')