Skip to content
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

macroquad-tiled: Support tile flipping & rotation in Map::draw_tiles #829

Conversation

Adjective-Object
Copy link
Contributor

This change adds support for tiled's flipping flags when rendering a tilemap

  • Adds new api in Map .spr_flip, which renders a tile including the tile's flipping parameters
  • Uses that api in .draw_tiles

From a simple test map I made:

Before After
image image

This change adds support for `tiled`'s flipping flags when rendering a tilemap

- Adds new api in Map `.spr_flip`, which renders a tile including the
  tile's [flipping parameters](https://doc.mapeditor.org/en/stable/reference/global-tile-ids/#mapping-a-gid-to-a-local-tile-id)
- Uses that api in .draw_tiles
@not-fl3
Copy link
Owner

not-fl3 commented Sep 27, 2024

Thanks!

@not-fl3 not-fl3 merged commit 4385146 into not-fl3:master Sep 27, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants