Skip to content

Aligning sprites? [enhancement] #11

@pdJeeves

Description

@pdJeeves

I want the sprites to be 4-pixel aligned, so that when it undergoes S3 compression there aren't any blocks of pixels that contain parts of two different sprites, and I can't figure out how to do it. I've already made it extrude the sprites so that they're dimensions are both multiples of 4 (see my fork); thinking that would automatically pack them in an aligned way, which didn't work. Then I tried dividing the size by the alignment at the start of MaxRects::insertNode, and multiplying the resulting position by the alignment before returning, and that didin't work either, so I'm out of ideas.

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