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