public Game1() { graphics = new GraphicsDeviceManager(this) { SynchronizeWithVerticalRetrace = false, PreferredBackBufferWidth = 800, PreferredBackBufferHeight = 600 }; Content.RootDirectory = "Content"; screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferWidth = ScreenRectangle.Width; graphics.PreferredBackBufferHeight = ScreenRectangle.Height; _gameStateManager = new GameStateManager(this); Components.Add(_gameStateManager); IsMouseVisible = true; titleIntroState = new TitleIntroState(this); startMenuState = new MainMenuState(this); gamePlayState = new GameplayState(this); _gameStateManager.ChangeState((TitleIntroState)titleIntroState, PlayerIndex.One); }
public TunnelVision() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; input = new InputHandler(this); Components.Add(input); Camera = new TunnelVisionCamera(this); Components.Add(Camera); gameManager = new GameStateManager(this); Components.Add(gameManager); Skybox = new Skybox(this); Components.Add(Skybox); //Components.Add(new GamerServicesComponent(this)); TitleIntroState = new TitleIntroState(this); StartMenuState = new StartMenuState(this); OptionsMenuState = new OptionsMenuState(this); PlayingState = new PlayingState(this); StartLevelState = new StartLevelState(this); FadingState = new FadingState(this); LostGameState = new LostGameState(this); WonGameState = new WonGameState(this); PausedState = new PausedState(this); YesNoDialogState = new YesNoDialogState(this); //HighScoresState = new HighScoresState(this); gameManager.ChangeState(TitleIntroState.Value); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferWidth = ScreenRectangle.Width; graphics.PreferredBackBufferHeight = ScreenRectangle.Height; gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); this.IsMouseVisible = true; titleIntroState = new TitleIntroState(this); startMenuState = new MainMenuState(this); gamePlayState = new GamePlayState(this); conversationState = new ConversationState(this); battleState = new BattleState(this); gameStateManager.ChangeState((TitleIntroState)titleIntroState, PlayerIndex.One); characterManager = CharacterManager.Instance; }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; input = new InputHandler(this); Components.Add(input); camera = new Camera(this); Components.Add(camera); gameManager = new GameStateManager(this); Components.Add(gameManager); TitleIntroState = new TitleIntroState(this); StartMenuState = new StartMenuState(this); OptionsMenuState = new OptionsMenuState(this); PlayingState = new PlayingState(this); StartLevelState = new StartLevelState(this); FadingState = new FadingState(this); LostGameState = new LostGameState(this); WonGameState = new WonGameState(this); PausedState = new PausedState(this); YesNoDialogState = new YesNoDialogState(this); gameManager.ChangeState(TitleIntroState.Value); }
//Into Screen #endregion public Game1() : base() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; //Game Services input = new InputHandler(this); console = new GameConsole(this); celAnimationManager = new CelAnimationManager(this); this.Components.Add(input); this.Components.Add(console); this.Components.Add(celAnimationManager); #region GameStates gameManager = new GameStateManager(this); TitleIntroState = new TitleIntroState(this); StartMenuState = new StartMenuState(this); PlayingState = new PlayingState(this); PausedState = new PausedState(this); gameManager.ChangeState(TitleIntroState.Value); #endregion }
public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 1366; graphics.PreferredBackBufferHeight = 768; Content.RootDirectory = "Content"; sb = new SpriteBatch(GraphicsDevice); input = new InputHandler(this); this.Components.Add(input); celAnimationManager = new CelAnimationManager(this); this.Components.Add(celAnimationManager); GameManager = new GameStateManager(this); PlayingState = new PlayingState(this); PausedState = new PausedState(this); TitleState = new TitleIntroState(this); StartMenuState = new StartMenuState(this); EndState = new EndState(this); GameManager.ChangeState(TitleState.Value); //GameManager.ChangeState(PlayingState.Value); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferWidth = ScreenRectangle.Width; graphics.PreferredBackBufferHeight = ScreenRectangle.Height; gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); titleIntroState = new TitleIntroState(this); gameStateManager.ChangeState((TitleIntroState)titleIntroState, PlayerIndex.One); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IsMouseVisible = true; //full screen. graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width; //windowed screen. //graphics.PreferredBackBufferHeight = 1000; //graphics.PreferredBackBufferWidth = 1600; screen_height = graphics.PreferredBackBufferHeight; screen_width = graphics.PreferredBackBufferWidth; FontScale = Game1.screen_height * 0.00055f; // for scaling our fonts to different screens. inputHandler = new InputHandler(this); Components.Add(inputHandler); celAnimationManager = new CelAnimationManager(this, "Textures\\Animations"); Components.Add(celAnimationManager); soundManager = new SoundManager(this); Components.Add(soundManager); stateManager = new GameStateManager(this); Components.Add(stateManager); TitleIntroState = new TitleIntroState(this); StartMenuState = new StartMenuState(this); ChooseFlagState = new ChooseFlagState(this); PausedState = new PausedState(this); OptionsMenuState = new OptionsMenuState(this); BuildingBoardState = new BuildingBoardState(this); PlacingSoldiersState = new PlacingSoldiersState(this); PlayingState = new PlayingState(this); EnableSoundFx = true; EnableMusic = true; }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferWidth = ScreenRectangle.Width; graphics.PreferredBackBufferHeight = ScreenRectangle.Height; gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); this.IsMouseVisible = true; titleIntroState = new TitleIntroState(this); startMenuState = new MainMenuState(this); startSettingsState = new SettingsState(this); startChooseMapState = new ChooseMapState(this); startPlayState = new PlayState(this); gameStateManager.ChangeState((TitleIntroState)titleIntroState); }
public Avatars() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferWidth = ScreenRectangle.Width; graphics.PreferredBackBufferHeight = ScreenRectangle.Height; gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); IsMouseVisible = true; titleIntroState = new TitleIntroState(this); startMenuState = new MainMenuState(this); gameStateManager.ChangeState((TitleIntroState)titleIntroState, PlayerIndex.One); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; // Defining the game window size screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferWidth = ScreenRectangle.Width; graphics.PreferredBackBufferHeight = ScreenRectangle.Height; gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); this.IsMouseVisible = true; titleIntroState = new TitleIntroState(this); mainMenuState = new MainMenuState(this); gameStateManager.ChangeState((TitleIntroState)titleIntroState, PlayerIndex.One); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferWidth = ScreenRectangle.Width; graphics.PreferredBackBufferHeight = ScreenRectangle.Height; gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); Options = new GameOptions(); Options.GameType = GameType.TwoPlayerCooperative; // TODO: set this on the menu screen titleIntroState = new TitleIntroState(this); startMenuState = new MainMenuState(this); gameStateManager.ChangeState((TitleIntroState)titleIntroState, PlayerIndex.One); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; this.IsMouseVisible = true; graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width; screen_height = graphics.PreferredBackBufferHeight; screen_width = graphics.PreferredBackBufferWidth; inputHandler = new InputHandler(this); Components.Add(inputHandler); celAnimationManager = new CelAnimationManager(this, "Textures\\Animations"); Components.Add(celAnimationManager); soundManager = new SoundManager(this); Components.Add(soundManager); stateManager = new GameStateManager(this); Components.Add(stateManager); TitleIntroState = new TitleIntroState(this); StartMenuState = new StartMenuState(this); PausedState = new PausedState(this); OptionsMenuState = new OptionsMenuState(this); BuildingBoardState = new BuildingBoardState(this); PlacingSoldiersState = new PlacingSoldiersState(this); PlayingState = new PlayingState(this); EnableSoundFx = true; EnableMusic = true; }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; graphics.SynchronizeWithVerticalRetrace = false; //vsync graphics.PreferredBackBufferFormat = SurfaceFormat.Alpha8; IsFixedTimeStep = false; if (IsFixedTimeStep) { TargetElapsedTime = TimeSpan.FromMilliseconds(1000.0f / 60); } SetWindowResolution(); IsMouseVisible = true; gameStateManager = new GameStateManager(this); Components.Add(gameStateManager); titleIntroState = new TitleIntroState(this); mainMenuState = new MainMenuState(this); gamePlayState = new GamePlayState(this); gameStateManager.ChangeState((TitleIntroState)titleIntroState, PlayerIndex.One); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; graphics.PreferredBackBufferWidth = 1024; graphics.PreferredBackBufferHeight = 768; Window.Title = "Infinity TD"; input = new InputHandler(this); Components.Add(input); IsMouseVisible = false; gameManager = new GameStateManager(this); Components.Add(gameManager); TitleIntroState = new TitleIntroState(this); StartMenuState = new StartMenuState(this); OptionsMenuState = new OptionsMenuState(this); PlayingState = new PlayingState(this); PausedState = new PausedState(this); soundManager = new SoundManager(this); gameManager.ChangeState(TitleIntroState.Value); }