Skip to content

Orthographic rotation/flipping #6

@jgordon510

Description

@jgordon510

I noticed that rotation/flipping wasn't supported. Flipped and rotated tiles do not show up. This is because the flips are encoded in three bits at the end of the number, which changes the decimal value stored on the data map. In order to display the flipped tiles, you need to strip these bits from the number. I also used these bits to affect the rotation, which required using translation inside a push/pop instead of drawing directly at the x/y coordinates.

In another issue, I talked about how I got multiple tilesets with selective loading implemented. This requires stripping the bits at the point of load as well, to get the proper tile number, to determine if it's present on the map.

Please let me know if you'd like to implement my changes.

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