public SimpleGame() { Content.RootDirectory = "Content"; Graphics = new GraphicsDeviceManager(this) { PreferredBackBufferWidth = 1280, PreferredBackBufferHeight = 720 }; frameRateCalculator = new FrameRateCalculator(); }
public GameStateMainMenu(Game game, IBatchedDrawingService drawingService, IInputManager inputManager, IGameStateManager stateService, IGameWindowService windowService) : base(drawingService) { this.frameRateCalculator = new FrameRateCalculator(); this.inputManager = inputManager; this.stateService = stateService; this.windowService = windowService; Game = game; styles = new List <StyleDefinition>(); }
public SimpleGame() { Content.RootDirectory = "Content"; var resolution = new XnaPoint(1393, 720); Graphics = new GraphicsDeviceManager(this) { PreferredBackBufferWidth = resolution.X, PreferredBackBufferHeight = resolution.Y }; IsFixedTimeStep = false; Graphics.SynchronizeWithVerticalRetrace = false; frameRateCalculator = new FrameRateCalculator(); }