コード例 #1
0
ファイル: Camera.cs プロジェクト: ebshimizu/XNAUtils
 /// <summary>
 /// Initializes the camera given the game.
 /// </summary>
 /// <param name="game">The game object</param>
 public Camera(UtilGame game)
 {
     resolution = new Vector2(game.Configuration.screenWidth, game.Configuration.screenHeight);
     position = Vector2.Zero;
     originOffset = new Vector2(maxX / 2.0f, maxY / 2.0f);
     mapWidth = 2000;
     mapHeight = 2000;
 }