public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = screenWidth; graphics.PreferredBackBufferHeight = screenHeight; ScreenRectangle = new Rectangle( 0, 0, screenWidth, screenHeight); Content.RootDirectory = "Content"; Components.Add(new InputHandler(this)); stateManager = new GameStateManager(this); Components.Add(stateManager); TitleScreen = new TitleScreen(this, stateManager); StartMenuScreen = new StartMenuScreen(this, stateManager); GamePlayScreen = new GamePlayScreen(this, stateManager); CharacterGeneratorScreen = new CharacterGeneratorScreen(this, stateManager); LoadGameScreen = new LoadGameScreen(this, stateManager); SkillScreen = new GameScreens.SkillScreen(this, stateManager); stateManager.ChangeState(TitleScreen); this.IsFixedTimeStep = false; graphics.SynchronizeWithVerticalRetrace = false; }
public BaseGameState(Game game, GameStateManager manager) : base(game, manager) { GameRef = (Game1)game; playerIndexInControl = PlayerIndex.One; }
public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = screenWidth; graphics.PreferredBackBufferHeight = screenHeight; ScreenRectangle = new Rectangle( 0, 0, screenWidth, screenHeight); Content.RootDirectory = "Content"; Components.Add(new InputHandler(this)); stateManager = new GameStateManager(this); Components.Add(stateManager); TitleScreen = new TitleScreen(this, stateManager); StartMenuScreen = new GameScreens.StartMenuScreen(this, stateManager); stateManager.ChangeState(TitleScreen); }
public GameState(Game game, GameStateManager manager) : base(game) { StateManager = manager; childComponents = new List<GameComponent>(); tag = this; }
protected GameState(Game game, GameStateManager manager) : base(game) { StateManager = manager; _childComponents = new List<GameComponent>(); _tag = this; }
public Game1() { _graphics = new GraphicsDeviceManager(this) { PreferredBackBufferWidth = ScreenWidth, PreferredBackBufferHeight = ScreenHeight }; ScreenRectangle = new Rectangle(0, 0, ScreenWidth, ScreenHeight); Content.RootDirectory = "Content"; Components.Add(new InputHandler(this)); _stateManager = new GameStateManager(this); Components.Add(_stateManager); TitleScreen = new TitleScreen(this, _stateManager); GamePlayScreen = new GamePlayScreen(this, _stateManager); _stateManager.ChangeState(TitleScreen); }
public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = screenWidth; graphics.PreferredBackBufferHeight = screenHeight; //graphics.IsFullScreen = true; ScreenRectangle = new Rectangle(0,0,screenWidth,screenHeight); Content.RootDirectory = "Content"; Components.Add(new InputHandler(this)); gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); titleScreen = new TitleScreen(this, gameStateManager); startMenuScreen = new StartMenuScreen(this, gameStateManager); gamePlayScreen = new GamePlayScreen(this,gameStateManager); characterScreen = new CharacterGeneratorScreen(this, gameStateManager); gameStateManager.ChangeState(titleScreen); }
public LoadGameScreen(Game game, GameStateManager manager) : base(game, manager) { }
public CharacterGeneratorScreen(Game game, GameStateManager manager) : base(game, manager) { }
public StartMenuScreen(Game game, GameStateManager manager) : base(game, manager) { }
public GamePlayScreen(Game game, GameStateManager manager) : base(game, manager) { }
public GamePlayScreen(Game game, GameStateManager manager) : base(game, manager) { _player = new Player(game); }
public SkillScreen(Game game, GameStateManager manager) : base(game, manager) { linkLabelHandler = new EventHandler(addSkillLabel_Selected); }