Skip to content

Implement xflip/yflip/rotation flags in tilemap layers #3603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dacap opened this issue Nov 28, 2022 · 1 comment · Fixed by #3980
Closed

Implement xflip/yflip/rotation flags in tilemap layers #3603

dacap opened this issue Nov 28, 2022 · 1 comment · Fixed by #3980
Assignees
Labels
feature Feature request, or something should be improved tilemap
Milestone

Comments

@dacap
Copy link
Member

dacap commented Nov 28, 2022

A task from #977 is the implementation of xflip/yflip/rotation flags for each individual tile instance in the tilemap. This is something planned in the .aseprite format in Cel chunks:

  • For cel type = 3 (Compressed Tilemap)
    WORD Width in number of tiles
    WORD Height in number of tiles
    WORD Bits per tile (at the moment it's always 32-bit per tile)
    DWORD Bitmask for tile ID (e.g. 0x1fffffff for 32-bit tiles)
    DWORD Bitmask for X flip
    DWORD Bitmask for Y flip
    DWORD Bitmask for 90CW rotation
    BYTE[10] Reserved
    TILE[] Row by row, from top to bottom tile by tile
    compressed with ZLIB method (see NOTE.3)

https://github.com/aseprite/aseprite/blob/main/docs/ase-file-specs.md#cel-chunk-0x2005

This issue was created so some users can keep track/subscribe to the implementation of this feature.

@dacap dacap added feature Feature request, or something should be improved tilemap labels Nov 28, 2022
@dacap dacap added this to the v1.3 milestone Nov 28, 2022
@dacap dacap mentioned this issue Nov 28, 2022
42 tasks
@dacap dacap self-assigned this Jul 4, 2023
@dacap dacap moved this to Todo in Attachment System Jul 4, 2023
@dacap dacap modified the milestones: v1.3.x, v1.3.1 Jul 4, 2023
@dacap dacap moved this from Todo to In Progress in Attachment System Jul 12, 2023
@dacap dacap linked a pull request Jul 24, 2023 that will close this issue
@dacap dacap moved this from In Progress to Todo in Attachment System Sep 4, 2023
@dacap dacap modified the milestones: v1.3.1, v1.3-rc7 Oct 5, 2023
@dacap dacap moved this to In Progress in Aseprite v1.3.x Oct 5, 2023
@dacap dacap modified the milestones: v1.3-rc7, v1.3.1 Nov 8, 2023
@dacap dacap closed this as completed in d39a656 Nov 13, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Aseprite v1.3.x Nov 13, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Attachment System Nov 13, 2023
@dacap
Copy link
Member Author

dacap commented Nov 13, 2023

Now we can flip/rotate tiles using Space+X or Space+H (flip horizontally), Space+Y or Space+V (flip vertically), Space+D (flip diagonally), Space+R (rotate).

We can also enable automatic match of flipped tiles when we create a new tileset or change a tileset properties:

Screenshot 2023-11-13 at 16 35 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request, or something should be improved tilemap
Projects
Archived in project
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant