|
@ -307,7 +307,7 @@ def stitch_sprites(metadata, filename_base): |
|
|
json_filename = os.path.expanduser(filename_base) + '.js' |
|
|
json_filename = os.path.expanduser(filename_base) + '.js' |
|
|
print('saving json to', json_filename) |
|
|
print('saving json to', json_filename) |
|
|
with open(json_filename, 'w') as json_file: |
|
|
with open(json_filename, 'w') as json_file: |
|
|
json_file.write(' const spritesheet_json = ') |
|
|
|
|
|
|
|
|
json_file.write('const spritesheet_json = ') |
|
|
json.dump(output_json, json_file, sort_keys=True, indent=2) |
|
|
json.dump(output_json, json_file, sort_keys=True, indent=2) |
|
|
json_file.write(';') |
|
|
json_file.write(';') |
|
|
|
|
|
|
|
|