示例#1
0
        public BaseGameState(Game game, GameStateManager manager)
            : base(game, manager)
        {
            GameRef = (Game1)game;

            playerIndexInControl = PlayerIndex.One;
        }
示例#2
0
文件: Game1.cs 项目: ayamidesu/shared
        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);
            Introscreen = new IntroScreen(this, stateManager);
            GamePlayScreen = new GamePlayScreen(this, stateManager);
            Outroscreen = new OutroScreen(this, stateManager);

            stateManager.ChangeState(TitleScreen);
        }
示例#3
0
        public GameState(Game game, GameStateManager manager)
            : base(game)
        {
            StateManager = manager;

            childComponents = new List<GameComponent>();
            tag = this;
        }
示例#4
0
 public StartMenuScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
 }
示例#5
0
 public TitleScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
 }
示例#6
0
 public OutroScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
     inDialog = true;
 }
示例#7
0
 public GamePlayScreen(Game game, GameStateManager manager)
     : base(game, manager)
 {
     world = new World(game, GameRef.ScreenRectangle);
 }
示例#8
0
 public InventoryScreen(Game game, GameStateManager manager, Party Party)
     : base(game, manager)
 {
     party = Party;
 }