Esempio n. 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;
 }
 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);
 }
Esempio n. 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);
        }
Esempio n. 4
0
        public MainScreen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
            ScreenManager screenManager, PlayerManager playerManager)
            : base(serviceProvider, contentRootDirectory, inputManager, screenManager, playerManager)
        {

        }