0
Vector2 firstSquare = new Vector2(camera.location.X/Tile.tilewidth, camera.location.Y/Tile.tileheight);
int firstX = (int)firstSquare.X;
int firstY = (int)firstSquare.Y;
Vector2 squareOffset = new Vector2(camera.location.X % Tile.tilewidth, camera.location.Y % Tile.tileheight);
int offsetX = (int)squareOffset.X;
int offsetY = (int)squareOffset.Y;
이 코드는 xna resources.com 사이트의 타일 엔진 자습서에 있습니다.XNA 게임 스튜디오 4.0 using C#
이 코드에서는 카메라 위치와 벡터 객체 값을 어떻게 알 수 있습니까?
또한 2D보기와 관련하여 카메라보기 및 세계관에 대한 지식이 없습니다.