Ejemplo n.º 1
0
        public cEngine(GraphicsDeviceManager gd, ContentManager cm)
        {
            _instance = this;
            _graphics = gd;
            _contentManager = cm;

            _postProcessor = new cPostProcessor(gd.GraphicsDevice, cm);
            _gameState = GAME_STATE.NOTHING;
            _batch = new cCustomSpriteBatch(gd.GraphicsDevice);

            _HUD = new cHUD();
        }
Ejemplo n.º 2
0
        protected override void LoadGraphicsContent(bool loadAllContent)
        {
            GraphicsDevice gd = _graphics.GraphicsDevice;
            cFontManager.Instance.LoadGraphicsContent(gd);

            if (loadAllContent)
            {
                _camera = new cCamera(0, 0, 800, 600);

                _engine = new cEngine(_graphics, _contentManager);
                _menu = new cMenu(_graphics, _contentManager, Window);
                _menu.startMenus();
                //_video = new cVideo(Window);
            }

            base.LoadGraphicsContent(loadAllContent);
        }
Ejemplo n.º 3
0
 public Game1()
 {
     cEngine engine = new cEngine();
     engine.Run();
 }