From 5bd2c434f63ff4a039e854d647f02ef660c544d1 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 24 Jul 2007 22:53:43 +0000 Subject: epic commit. removed tga support, removed BGR support. fixed one config for editor, server and client, optimized tilemap rendering (this needs some cleanup), added tools to fix alpha outline quirk and glitches in the tilemap reindering --- scripts/dat2c.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/dat2c.py (limited to 'scripts/dat2c.py') diff --git a/scripts/dat2c.py b/scripts/dat2c.py new file mode 100644 index 00000000..87dfd114 --- /dev/null +++ b/scripts/dat2c.py @@ -0,0 +1,17 @@ +import sys + +data = file(sys.argv[1], "rb").read() + +i = 0 +print "const char", sys.argv[2], "[] = {" +print str(ord(data[0])), +for d in data[1:]: + s = ","+str(ord(d)) + print s, + i += len(s)+1 + + if i >= 70: + print "" + i = 0 +print "" +print "};" -- cgit 1.4.1