Update of /cvsroot/super-tux/supertux/contrib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27562
Modified Files:
levelconverter-0.0.6_0.0.7.py
Log Message:
- added object support (untested)
Index: levelconverter-0.0.6_0.0.7.py
===================================================================
RCS file: /cvsroot/super-tux/supertux/contrib/levelconverter-0.0.6_0.0.7.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- levelconverter-0.0.6_0.0.7.py 25 Mar 2004 02:35:07 -0000 1.6
+++ levelconverter-0.0.6_0.0.7.py 27 Mar 2004 19:30:07 -0000 1.7
@@ -97,6 +97,19 @@
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 #
|