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

fix rendering of objects from tileset tiles #219

Merged
merged 1 commit into from
Jul 7, 2019

Conversation

sealgair
Copy link
Contributor

When collidable objects are defined in a tileset, their properties get used each time the tile is drawn, which causes the vertex coordinates to be incremented each time -- so only the first instance of each tile is drawn in the correct place.

Doing a deep copy of the tileset's tile object properties allows them to be correctly set each time.

@karai17 karai17 merged commit a91dcb7 into karai17:master Jul 7, 2019
@karai17
Copy link
Owner

karai17 commented Jul 7, 2019

Thanks!

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