Beispiel #1
0
        public Portal2D()
        {
            _instance = this;
            _spriteManager = new cSpriteManager();
            _graphics = new GraphicsDeviceManager(this);
            _contentManager = new ContentManager(Services);
            _input = new cInput();
            _audio = new cAudio();
            _fontManager = new cFontManager();
            _fontManager.addFont(@"Resources/Fonts/Treb11.xml", "Treb11");
            _fontManager.addFont(@"Resources/Fonts/Treb8.xml", "Treb8");

            _gameRunning = false;
            _videoRunning = false;

            // Allow resizing - SET TO FLASE FOR NOW
            Window.AllowUserResizing = false;
            Window.ClientSizeChanged += new System.EventHandler(Window_ClientSizeChanged);
        }
Beispiel #2
0
 public cInput()
 {
     _instance = this;
 }