Inheritance: Microsoft.Xna.Framework.Game
Esempio n. 1
0
        public Engine(int width, int height)
        {
            MP.Width = width;
            MP.Height = height;
            MP.currentWorld = new World();

            graphics = new GraphicsDeviceManager(this);
            graphics.SynchronizeWithVerticalRetrace = false;
            this.IsFixedTimeStep = false;
            //graphics.IsFullScreen = true;
            graphics.PreferredBackBufferWidth = width;
            graphics.PreferredBackBufferHeight = height;
            Content.RootDirectory = "/Users/dabrorius/MonoDevelop/MonoGame-2.5.0.0/TestGame/Assets";
            Engine.currentEngine = this;
        }
Esempio n. 2
0
        public Engine(int width, int height, string assetsDirectory = "./")
            : base()
        {
            MP.Width = width;
            MP.Height = height;
            MP.currentWorld = new World ();

            Window.AllowUserResizing = true;

            graphics = new GraphicsDeviceManager (this);
            graphics.SynchronizeWithVerticalRetrace = false;
            graphics.PreferredBackBufferWidth = MP.Width;
            graphics.PreferredBackBufferHeight = MP.Height;
            graphics.ApplyChanges ();

            this.IsFixedTimeStep = false;
            //graphics.IsFullScreen = true;

            //graphics.ApplyChanges ();
            Content.RootDirectory = assetsDirectory;
            Engine.currentEngine = this;
        }