From 2ff56876fda7b93e8baf779a1e785e9fc9386c9b Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sat, 27 Mar 2004 19:30:07 +0000 Subject: [PATCH] - added object support (untested) SVN-Revision: 394 --- contrib/levelconverter-0.0.6_0.0.7.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 # -- 2.11.0