예제 #1
0
        //private bool debugDraw = false;
        public JitterDemo()
        {
            this.IsMouseVisible = true;
            graphics = new GraphicsDeviceManager(this);

            graphics.PreferMultiSampling = true;

            Content.RootDirectory = "Content";

            // 720p
            graphics.PreferredBackBufferHeight =  720;
            graphics.PreferredBackBufferWidth =  1280;

            this.IsFixedTimeStep = false;
            this.TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 100.0);
            this.graphics.SynchronizeWithVerticalRetrace = false;

            CollisionSystem collision = new CollisionSystemPersistentSAP();
            collision.EnableSpeculativeContacts = false;
            World = new World(collision); World.AllowDeactivation = false;

            this.Window.AllowUserResizing = true;

            this.Window.Title = "Jitter 2D Physics Demo - Jitter 2D "
                + Assembly.GetAssembly(typeof(Jitter2D.World)).GetName().Version.ToString();
        }
예제 #2
0
        public JitterDemo()
        {
            this.IsMouseVisible = true;
            graphics = new GraphicsDeviceManager(this);

            //graphics.GraphicsProfile = GraphicsProfile.HiDef;
            graphics.PreferMultiSampling = true;

            Content.RootDirectory = "Content";

            graphics.PreferredBackBufferHeight = 600;
            graphics.PreferredBackBufferWidth = 800;

            this.IsFixedTimeStep = true;
            this.graphics.SynchronizeWithVerticalRetrace = false;

            CollisionSystem collision = new CollisionSystemBrute();
            collision.EnableSpeculativeContacts = false;
            World = new World(collision); World.AllowDeactivation = false;

            this.Window.AllowUserResizing = true;

            this.Window.Title = "Jitter 2D Physics Demo - Jitter 2D "
                + Assembly.GetAssembly(typeof(Jitter2D.World)).GetName().Version.ToString();
        }