Exemple #1
0
 public static void init(Game1 main)
 {
     instance = new MainManager(main);
     instance.uiMan = new UIManager();
     instance.inputMan = new InputManager();
     instance.drawMan = new DrawManager();
     instance.gameMan = new GameManager();
     instance.discardMan = new DiscardManager();
 }
Exemple #2
0
 public static void init(Game1 main)
 {
     instance            = new MainManager(main);
     instance.uiMan      = new UIManager();
     instance.inputMan   = new InputManager();
     instance.drawMan    = new DrawManager();
     instance.gameMan    = new GameManager();
     instance.discardMan = new DiscardManager();
 }
Exemple #3
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            MainManager.init(this);
            base.Initialize();

            this.IsMouseVisible = true;
            cam          = new Camera(this, MainManager.Instance.gameMan.player.Rect);
            cam.Position = MainManager.Instance.gameMan.player.pos;
            MainManager.Instance.uiMan.PushScreen(new TitleScreen());
        }