Exemplo n.º 1
0
        void InitializeOther(bool useTestGraphicsDeviceManager)
        {
            graphics = useTestGraphicsDeviceManager ? (IGraphicsDeviceService)new DummyGraphicsDeviceManager(this) : new GraphicsDeviceManager(this);

            content = new ContentManager(Services);
            TargetElapsedTime = TimeSpan.FromMilliseconds(100);

            //Components.Add(new MyComponent(this));
            //Components.Add(new MyDrawable(this));
            //Components.Add(new Invisible(this));
            //Components.Add(new NotEnabled(this));
            //Components.Add(new Ordered(this, 20));
            //Components.Add(new Ordered(this, 15));
            //Components.Add(new Ordered(this, 10));
            
            #region Mono.Xna specific
#if !MSXNAONLY
            Window = _window = new TestGameWindow(this);
#endif
            #endregion Mono.Xna specific
        }
Exemplo n.º 2
0
        void InitializeOther(bool useTestGraphicsDeviceManager)
        {
            graphics = useTestGraphicsDeviceManager ? (IGraphicsDeviceService) new DummyGraphicsDeviceManager(this) : new GraphicsDeviceManager(this);

            content           = new ContentManager(Services);
            TargetElapsedTime = TimeSpan.FromMilliseconds(100);

            //Components.Add(new MyComponent(this));
            //Components.Add(new MyDrawable(this));
            //Components.Add(new Invisible(this));
            //Components.Add(new NotEnabled(this));
            //Components.Add(new Ordered(this, 20));
            //Components.Add(new Ordered(this, 15));
            //Components.Add(new Ordered(this, 10));

            #region Mono.Xna specific
#if !MSXNAONLY
            Window = _window = new TestGameWindow(this);
#endif
            #endregion Mono.Xna specific
        }