Skip to content

Instantly share code, notes, and snippets.

@foone
foone / level.txt
Created December 1, 2021 04:09
hall of tortured souls level
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
@foone
foone / hots.py
Created January 5, 2022 04:28
Hall of Tortured Souls
#!/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):