Hey, I really struggle with the multi-resolution of Cocos2d-x. (OSX development currently)
I have a background image (960x640) and I always get black bars around my sprite.
I changed the design resolution, the Rect from the glView, the Resolution Policy, but I just can’t get rid of them. I always have a scale factor on my sprite, although the sprite has the same dimensions as my project.
This scale factor is really bad, because I have a second project with a tilemap. The scalefactor (usually 2.33333 or 1.06777) is a floating number which gives me imprecisions by calculating the coordinates of my player. The whole tile is scaled and so are it’s dimensions (6464 will be (6464)*2.33333 ) and at some point, the error accumulates and the calculated coordinate for my sprite based on the tilemap gets wrong (either skips a tile coordinate, because I get a 0.99999 or jumps one, because I got a 0.111111). I “fixed” this behaviour by manually setting the scale factor to an integer, but this doesn’t support multi-resolution.
Is there a way to fix this this strange behaviour?
