def load(self, levelfile):
"""Load the level"""
self.data = []
- for line in levelfile.readlines():
+ # Because of how kivy's coordinate system works,
+ # we reverse the lines so things match up between
+ # the file and the display (top of file == top of display)
+ for line in reversed(levelfile.readlines()):
self.data.append(list(line.strip('\n')))
def load_tiles(self):