From 3ed4edc88dbb71e7bcd72880d36adde53ef44282 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 2 May 2004 22:21:22 +0000 Subject: [PATCH] - removed old convert script, the working one is still in place SVN-Revision: 927 --- contrib/levelconvert.py | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100755 contrib/levelconvert.py diff --git a/contrib/levelconvert.py b/contrib/levelconvert.py deleted file mode 100755 index 7c7085bb6..000000000 --- a/contrib/levelconvert.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/python - -import sys - -print ";; Converting:", sys.argv[1] - -f = open(sys.argv[1], 'r') -mycontent = f.readlines() - -content = [] - -for i in mycontent: - content.append(i[:-1]) - -name = content[0] -theme = content[1] -time = content[2] -music = content[3] -background = content[4] -red = content[5] -blue = content[6] -green = content[7] -width = content[8] -height = "15" -gravity = content[9] - -print "(level" -print " (name \"%s\")" % name -print " (theme \"%s\")" % theme -print " (music \"%s\")" % music -print " (background \"%s\")" % background -print " (bkgd_red %s)" % red -print " (bkgd_green %s)" % green -print " (bkgd_blue %s)" % blue -print " (time %s)" % time -print " (width %s)" % width -print " (gravity %s)" % gravity -print " (tilemap " -for i in content[10:]: - for x in i: - sys.stdout.write("%3d" % ord(x)) - sys.stdout.write(" ") - print "" -print " )" -print ")" - -# EOF # -- 2.11.0