public SpaceInvadersGame()
        {
            Content.RootDirectory = "Content";

            r_GraphicsMgr = new GraphicsDeviceManager(this);
            r_InputManager = new InputManager(this);
            r_SoundManager = new SoundManager(this);
            r_FontManager = new FontManager(this, @"Fonts\Arial");
            r_SettingsManager = new SettingsManager(this);
            r_CollisionsManager = new CollisionsManager(this);
            r_ScreensMananger = new ScreensMananger(this);
            r_ScreensMananger.SetCurrentScreen(new WelcomeScreen(this));
        }
Ejemplo n.º 2
0
        public GameWrapper()
        {
            m_GraphicsDeviceManager = new GraphicsDeviceManager(this);
            m_CollisionsManager = new CollisionsManager(this);
            m_ScreensManager = new ScreensMananger(this);
            m_InputService = new InputService(this);
            m_SoundService = new SoundService(this);

            MaxNumPlayers = 2;
            MinNumPlayers = 1;
            NumPlayers = 1;
            Content.RootDirectory = "Content";
        }
 public BulletsFactory(Game i_Game) : base(i_Game)
 {
     r_AvailableBulletsForDeploymentsStack        = new Stack <Bullet>();
     r_FlyingBulletsToContainingScreensDictionary = new Dictionary <Bullet, GameScreen>();
     r_GameScreensManager = Game.Services.GetService <IScreensMananger>();
 }