From: Ingo Ruhnke Date: Sat, 27 Mar 2004 19:30:07 +0000 (+0000) Subject: - added object support (untested) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2ff56876fda7b93e8baf779a1e785e9fc9386c9b;p=supertux.git - added object support (untested) SVN-Revision: 394 --- diff --git a/contrib/levelconverter-0.0.6_0.0.7.py b/contrib/levelconverter-0.0.6_0.0.7.py index 2f380addc..07c10fd27 100755 --- 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 #