I'm trying to make a game with libgdx which can run in multiple aspect ratio. The idea is to zoom in/zoom out the camera until the height of my screen same as the device height (my game is landscape). Generally, my idea is success before I add a sprite to the screen.
I want to draw multiple Texture from a TextureAtlas which shape is rectangle. In my native aspect ratio, it looks perfect and look like this : Image before
But, after I try it in different aspect ratio (which called the zoom method), the Texture is look like this : Image after
Note that the Texture is a single rectangle which size is 55x55 and I draw it repeatly. I can only think there is some problem in my TextureAtlas, my zoom method, or my drawing method. What is the source of this problem and how to fix this problem?