public DebugView(World _world, Game1 game, float _ratio) { _debugView = new DebugViewXNA(_world); _debugView.AppendFlags(FarseerPhysics.DebugViewFlags.DebugPanel); _debugView.DefaultShapeColor = Color.Red; _debugView.SleepingShapeColor = Color.DarkRed; _debugView.LoadContent(game.GraphicsDevice, game.Content); _debugView.AppendFlags(FarseerPhysics.DebugViewFlags.Shape); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.PerformanceGraph); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.AABB); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.CenterOfMass); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.ContactNormals); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.ContactPoints); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.Controllers); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.Joint); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.PolygonPoints); // //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.PolygonPoints); this.game = game; this._ratio = _ratio; Enabled = true; }
public Settings(Game1 game) : base(game) { Content.RootDirectory = "Content"; IsMouseVisible = true; }
static void Main() { using (var game = new Game1()) game.Run(); }