Skip to content

Fixed bug layout#1

Open
juliengrimault wants to merge 2 commits into
aiomev:masterfrom
juliengrimault:master
Open

Fixed bug layout#1
juliengrimault wants to merge 2 commits into
aiomev:masterfrom
juliengrimault:master

Conversation

@juliengrimault

Copy link
Copy Markdown

Each tile was offset by half its width and height because the anchor point was not taken into account in the positioning computation.

used floorf(float) instead of floor(double)
Each tiles needs to have its anchorPoint set to 0 so that the box is evenly stretched around the DecoratedBox's position.
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.

1 participant