This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e -50 100 14 1 | |
e 0 16 3 7 | |
e -1 17 2 11 | |
e 3 11 4 4 | |
e 15 25 3 9 | |
e 18 23 7 7 | |
e 18 25 14 14 | |
e 18.2 25.2 14 14 | |
e 18.6 25.2 14 14 | |
e 1 14 0 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import pygame | |
from pygame.constants import * | |
import sys,re | |
lines=[] | |
dots=[] | |
offset=[0,0] | |
def build_re(start,args): | |
return re.compile('^({})'.format(start) + (r'(?:[\s,]+)([-.\d]+)'*args)) | |
def anymatch(line,regexes): |