I have a game with lots of characters and want to use a retro pixel style. Everything looks fine and based on a screen size of 320x480px the map on the screen and the characters are looking good in pixel block style. But when I’m using physics on the characters they move not in “steps” of the pixel size, but in real screen pixels, so it can happen their pixels can be “off” compared to the map pixels in the background or compared to each others pixel positions.
I now wonder if there is a way to move physics objects in integer steps and not float values or some other way to avoid wrong positions of the characters?