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

Issue 110 - Animated tile IDs, and nullptr returned by tileset->getTile(tileId), local vs global #112

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

twje
Copy link
Contributor

@twje twje commented Dec 25, 2023

Description

In a tileset, the IDs of tiles are local, which allows them to reference one another within the same tileset, for example, animation frames. At the moment, missing tiles are being assigned a global ID for their local ID.

Solution
Amend Tileset::generateMissingTiles and the second Tile constructor responsible for instantiating missing tiles.

Copy link
Owner

@SSBMTonberry SSBMTonberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@twje : Looks great! Thank you very much for your contribution! 🙏

@SSBMTonberry SSBMTonberry merged commit 14dfeae into SSBMTonberry:master Dec 25, 2023
14 checks passed
@SSBMTonberry
Copy link
Owner

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