threerings / tripleplay

Utilities for use in PlayN-based games.
Other
92 stars 32 forks source link

setLocation(): round coords instead of truncating. #73

Closed guillerodriguez closed 6 years ago

guillerodriguez commented 6 years ago

This avoids visual artifacts on devices with non-integer scaling factors.

samskivert commented 6 years ago

I'm a little worried this is going to cause trouble somewhere, but the most important thing is to avoid positioning things on non-integer pixels, so maybe the floor was actually the troublemaker and the round will be strictly better.