예제 #1
0
파일: Game1.cs 프로젝트: vkuts/Gamesor
        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;
        }
예제 #2
0
        public BaseGameState(Game game, GameStateManager manager)
            : base(game, manager)
        {
            GameRef = (Game1)game;

            playerIndexInControl = PlayerIndex.One;
        }
예제 #3
0
        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);
        }
예제 #4
0
 public GameState(Game game, GameStateManager manager)
     : base(game)
 {
     StateManager = manager;
     childComponents = new List<GameComponent>();
     tag = this;
 }
예제 #5
0
파일: GameState.cs 프로젝트: Jake4288/DC
        protected GameState(Game game, GameStateManager manager)
            : base(game)
        {
            StateManager = manager;

            _childComponents = new List<GameComponent>();
            _tag = this;
        }
예제 #6
0
파일: Game1.cs 프로젝트: Jake4288/DC
        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);
        }
예제 #7
0
        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);
        }
예제 #8
0
 public LoadGameScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
 }
 public CharacterGeneratorScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
 }
예제 #10
0
 public StartMenuScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
 }
예제 #11
0
 public GamePlayScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
 }
예제 #12
0
 public GamePlayScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
     _player = new Player(game);
 }
예제 #13
0
 public SkillScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
     linkLabelHandler = new EventHandler(addSkillLabel_Selected);            
 }