Пример #1
0
 public Screen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
     ScreenManager screenManager, PlayerManager playerManager)
 {
     ScreenState = ScreenStates.Hidden;
     ContentManager = new ContentManager(serviceProvider, contentRootDirectory);
     InputManager = inputManager;
     ScreenManager = screenManager;
     PlayerManager = playerManager;
 }
Пример #2
0
 public StageOnePartOneScreen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
     ScreenManager screenManager, PlayerManager playerManager)
     : base(serviceProvider, contentRootDirectory, inputManager, screenManager, playerManager)
 {
     entityManager = new EntityManager();
     playerManager.EntityManager = entityManager;
     enemyManager = new EnemyManager(playerManager, entityManager);
     playerManager.EnemyManager = enemyManager;
     wrapAroundXDest = 1280;
     wrapAroundRectangle = new Rectangle(0, 0, ScreenManager.ScreenWidth, ScreenManager.ScreenHeight);
     backgroundRectangle = new Rectangle(0, 0, ScreenManager.ScreenWidth, ScreenManager.ScreenHeight);
 }
Пример #3
0
        public YellowMamba() : base()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = ScreenWidth;
            graphics.PreferredBackBufferHeight = ScreenHeight;

            Content.RootDirectory = "Content/" + AssetType;

            inputManager = new InputManager();
            screenManager = new ScreenManager(inputManager);
            screenManager.ScreenWidth = ScreenWidth;
            screenManager.ScreenHeight = ScreenHeight;
            playerManager = new PlayerManager(inputManager);
        }
Пример #4
0
        public MainScreen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
            ScreenManager screenManager, PlayerManager playerManager)
            : base(serviceProvider, contentRootDirectory, inputManager, screenManager, playerManager)
        {

        }