diff --git a/res/ldtk_repacker.py b/res/ldtk_repacker.py index 2717198..c02b9bd 100644 --- a/res/ldtk_repacker.py +++ b/res/ldtk_repacker.py @@ -79,6 +79,7 @@ else: fileparts[-1] = "lvldata" converted_filename = '.'.join(fileparts) +max_n_tiles = 0 # Each level should be packed as: [width, 2 bytes][height, 2 bytes][tile_type,entity,water,padding 1,1,1,1 bytes][tile_type,entity,water,padding 1,1,1,1 bytes]... with open(converted_filename, 'wb+') as out_file: out_file.write(struct.pack("