我正在尝试使用光滑类中的平铺地图渲染我正在制作的游戏的地图但是我很难理解参数x和y之间的差异。下面是谷歌的解释,但我不理解
public void render(int x,
int y,
int sx,
int sy,
int width,
int height)
Render a section of the tile map
Parameters:
x - The x location to render at
y - The y location to render at
sx - The x tile location to start rendering
sy - The y tile location to start rendering
width - The width of the section to render (in tiles)
height - The height of the secton to render (in tiles)
我的游戏包括一辆汽车和一个锁定在它上面的摄像头,它将跟随地图上的汽车。当汽车移动时,地图开始渲染。有人可以给我一个关于x和y以及sx和sy如何应用于此的解释。