7 lines
226 B
Python
7 lines
226 B
Python
from parse.tileset_constants import flatten, tokenize_lines
|
|
|
|
def parse(prefix):
|
|
path = prefix / 'constants/sprite_constants.asm'
|
|
with open(path) as f:
|
|
return dict(flatten(tokenize_lines(f.read().split('\n'))))
|