Ejemplo n.º 1
0
        public Game1()
            : base()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            this.graphics.PreferredBackBufferHeight = 144;
            this.graphics.PreferredBackBufferWidth = 160;
            _managerInput = new ManagerInput();
            Console.WriteLine("hej hej");
        }
Ejemplo n.º 2
0
 public void LoadNewScreen(Screen screen, bool fade = true, bool loadContent = true)
 {
     ManagerInput.PauseInput(750);
     _tempScreenHolder = screen;
     _loadContent      = loadContent;
     if (!fade)
     {
         AfterFadeOut();
         _currentPhase = Phase.Running;
         return;
     }
     _currentPhase = Phase.FadeOut;
     _counter      = 0;
     _alpha        = 0;
 }
Ejemplo n.º 3
0
        public Game1()
            : base()
        {
            _managerInput = new ManagerInput();
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            this.graphics.PreferredBackBufferHeight = 128;
            this.graphics.PreferredBackBufferWidth = 160;

            _managerCamera = new ManagerCamera();

            _mainForm = new MainForm(_managerCamera);
            var thread = new Thread(new ThreadStart(new ThreadStart(RunGUI)));
            thread.Start();
        }