dansanderson / picotool

Tools and Python libraries for manipulating Pico-8 game files. http://www.lexaloffle.com/pico-8.php
MIT License
371 stars 45 forks source link

.p8 writer should minimize data sections #76

Closed dansanderson closed 3 years ago

dansanderson commented 3 years ago

A while back Pico-8 extended the .p8 format to allow for omitting trailing lines from the data regions that only contribute default (empty) data. picotool should do the same.

By surprising coincidence, picotool doesn't have an issue reading files in the extended format, and Pico-8 doesn't mind trailing default data. So there isn't actually a compatibility issue here. It'd just be nice if picotool did the same thing that Pico-8 does when saving files.

dansanderson commented 3 years ago

Dupe of #61.