Skip to content

Why does Ebitengine require the step to center my sprites over the origin before every Scaling, Rotation, and Translation combination #2793

Closed Answered by hajimehoshi
ShadyHippo asked this question in Q&A
Discussion options

You must be logged in to vote

It's because I decided so.

If the default origin position was the center of the source, you would need offsetting by 1/2 width and 1/2 height for every tile when you rendered tiles like https://ebitengine.org/en/examples/tiles.html. So, there would be another troublesome in the other way.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ShadyHippo
Comment options

Answer selected by ShadyHippo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants