projects
/
erdslangetjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa32d9e
)
Tweak level loading code
author
Neil
<neil@dip.sun.ac.za>
Mon, 15 Apr 2013 12:53:05 +0000
(14:53 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Mon, 15 Apr 2013 12:53:05 +0000
(14:53 +0200)
erdslangetjie/level.py
patch
|
blob
|
history
diff --git
a/erdslangetjie/level.py
b/erdslangetjie/level.py
index 4dffd6deb759fa075e29eda28b3867226fef2634..645a62f7678aca49f89f85a024dbaf4cc9ecd327 100644
(file)
--- a/
erdslangetjie/level.py
+++ b/
erdslangetjie/level.py
@@
-14,7
+14,10
@@
class Level(object):
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):