示例#1
0
 private ScreenCoordinate GetRightBottom(int screenWidth, int screenHeight, int level)
 {
     return(new ScreenCoordinate(
                MapUtilities.GetX(this, level) + ((screenWidth - 1) / 2 + 1),
                MapUtilities.GetY(this, level) + ((screenHeight - 1) / 2 + 1),
                level));
 }
示例#2
0
 private ScreenCoordinate GetLeftTop(int screenWidth, int screenHeight, int level)
 {
     return(new ScreenCoordinate(
                MapUtilities.GetX(this, level) - ((screenWidth + 1) / 2 - 1),
                MapUtilities.GetY(this, level) - ((screenHeight + 1) / 2 - 1),
                level));
 }