示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 public static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
示例#2
0
 public BaseGameState(Game game, GameStateManager manager)
     : base(game, manager)
 {
     // Creates a reference to the main game.
     this.gameRef = (Game1)game;
 }
示例#3
0
 public Player(Game game)
 {
     this.gameRef = (Game1)game;
     this.camera = new Camera(this.gameRef.ScreenRectangle);
 }