Skip to content

export sprites and export tiles do not preserve flag information #2793

@ToxicFrog

Description

@ToxicFrog

Using export to save the sprite or tile sheets to an external file, and then import to load them back in, does not preserve the sprite flags. Looking at the emitted files it seems like they are just "plain" PNGs without any ancillary chunks.

This should probably be handled the same way as save png handles the embedded cartridge data: write an ancillary chunk (flAg, perhaps?) containing the 256 bytes of flag RAM corresponding to the exported sheet, and when importing, if that chunk is present, load it into flag RAM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions