Skip to main content

Timeline for Libgdx understanding screen size

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Apr 13, 2017 at 12:18 history edited CommunityBot
replaced http://gamedev.stackexchange.com/ with https://gamedev.stackexchange.com/
Dec 29, 2015 at 13:25 comment added Robert P @MrPlow then, ofc, you are right. Thanks for mentioning it, it is definitly an important detail!
Dec 29, 2015 at 13:19 comment added MrPlow Yeah, I meant that the sprite position needs to be offset by half-width and half-height so that it's "properly" centered though i haven't expressed myself clearly. Thanks for clearing that up.
Dec 29, 2015 at 12:59 history edited Robert P CC BY-SA 3.0
added 464 characters in body
Dec 29, 2015 at 12:56 comment added Robert P @MrPlow note, that the origin will only affect the rotation and scaling, not the position. So the position will always be the lower, left corner, independent of the origin.
Dec 29, 2015 at 10:58 comment added MrPlow Also, a small thing to add onto this answer, you should take into consideration that sprite origin is by default in the bottom left corner so to perfectly render the sprite it needs to be offset by half-width and half-height
Jun 1, 2015 at 7:21 history answered Robert P CC BY-SA 3.0