Пример #1
0
 public JumpMapWorld(GameStateAgent agent) : base(agent)
 {
     MusicManager.Instance.PauseMusic();
     Updatables = new IUpdatable[]
     {
         new JumpMapControllerMouse(StateAgent),
         new JumpMapControllerKeyboard(StateAgent)
     };
     UnscaledDrawables = new IDrawable[]
     {
         new JumpMapScreen()
     };
 }
Пример #2
0
 public GameOverWorld(GameStateAgent agent) : base(agent)
 {
     MusicManager.Instance.PlayGameOverMusic();
     _screen             = new GameOverMenu(agent);
     _controllerKeyboard = new GameOverControllerKeyboard(agent, _screen);
     _updatables         = new IUpdatable[]
     {
         new QuitResetControllerKeyboard(agent), StateAgent.Player, this
     };
     _scaledDrawables = new IDrawable[]
     {
         StateAgent.Player
     };
 }
Пример #3
0
        public GameWinWorld(GameStateAgent agent) : base(agent)
        {
            MusicManager.Instance.PlayWinMusic();

            var screen = new GameWinMenu(agent);

            Updatables = new IUpdatable[]
            {
                new GameWinControllerKeyboard(agent, screen),
                screen
            };
            ScaledDrawables = new IDrawable[]
            {
                screen
            };
        }
Пример #4
0
        public PausedWorld(GameStateAgent agent) : base(agent)
        {
            var pause = new PauseMenu(agent, new Point(0, -YOffset));

            Updatables = new IUpdatable[]
            {
                new ControllerPauseKeyboard(StateAgent, pause),
                StateAgent.HUD,
                pause
            };
            ScaledDrawables = new[]
            {
                StateAgent.DungeonManager,
                StateAgent.HUD,
                pause
            };
        }
Пример #5
0
        public PlayingWorld(GameStateAgent agent) : base(agent)
        {
            MusicManager.Instance.PlayLabryinthMusic();
            Updatables = new IUpdatable[]
            {
                new ControllerKeyboard(StateAgent),
                StateAgent.Player,
                StateAgent.HUD,
                StateAgent.DungeonManager
            };

            ScaledDrawables = new[]
            {
                StateAgent.DungeonManager,
                StateAgent.Player,
                StateAgent.HUD
            };
        }