INNER CODE UNIT · Python

find

racenis/tram-sdk · devtools/converters/cbfg2sprite.py:12

def find(xyz):
	return results[xyz]
			
f = open("Font.spr", "a")
f.write("SPRv2 ui/font_text\n\n")

for i in range(0, 256):
	x = (i % 16) * 16
	y = int(int(i / 16) * 16)
	
	w = find("Char "+str(i)+" Base Width")
	h = 16
	
	cx = 8
	cy = 8
	
	bh = 0
	bv = 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…