gfx.py automatically converts tilesets to 128-px wide pngs

This commit is contained in:
pikalaxalt 2016-05-17 23:01:43 -04:00
parent 98f443f70c
commit 87368a08a2

6
gfx.py
View File

@ -83,6 +83,9 @@ def filepath_rules(filepath):
elif os.path.join(filedir, name) in pics:
args['pic'] = True
elif filedir == 'gfx/tilesets':
args['tileset'] = True
if args.get('pal_file'):
if os.path.exists(args['pal_file']):
args['palout'] = args['pal_file']
@ -102,6 +105,9 @@ def filepath_rules(filepath):
args['pic_dimensions'] = 6, 6
else:
args['pic_dimensions'] = 7, 7
if args.get('tileset'):
args['width'] = 128
return args