projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d805b06
)
- added object support (untested)
author
Ingo Ruhnke
<grumbel@gmx.de>
Sat, 27 Mar 2004 19:30:07 +0000
(19:30 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Sat, 27 Mar 2004 19:30:07 +0000
(19:30 +0000)
SVN-Revision: 394
contrib/levelconverter-0.0.6_0.0.7.py
patch
|
blob
|
history
diff --git
a/contrib/levelconverter-0.0.6_0.0.7.py
b/contrib/levelconverter-0.0.6_0.0.7.py
index
2f380ad
..
07c10fd
100755
(executable)
--- a/
contrib/levelconverter-0.0.6_0.0.7.py
+++ b/
contrib/levelconverter-0.0.6_0.0.7.py
@@
-97,6
+97,19
@@
for i in content[10:]:
sys.stdout.write(" ")
print ""
print " )"
+
+print " (objects"
+for y in range(0, 15):
+ for x in range(0, int(width)):
+ val = content[10 + y][x]
+ if val == '0':
+ print " (bsod %d %d)" % (x*32, y*32)
+ elif val == '1':
+ print " (laptop %d %d)" % (x*32, y*32)
+ elif val == '2':
+ print " (money %d %d)" % (x*32, y*32)
+print " )"
+
print ")"
# EOF #