/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here quadDrawer = new QuadDrawer(graphics.GraphicsDevice); checkerTexture = Content.Load <Texture2D>("checker"); }
public void AddGround() { ground = new RigidBody(new BoxShape(new JVector(200, 20, 200))); ground.Position = new JVector(0, -10, 0); ground.Tag = BodyTag.DontDrawMe; ground.IsStatic = true; Demo.World.AddBody(ground); //ground.Restitution = 1.0f; ground.Material.KineticFriction = 0.0f; quadDrawer = new QuadDrawer(Demo,100); Demo.Components.Add(quadDrawer); }
public void AddGround() { ground = new RigidBody(new BoxShape(new JVector(200, 20, 200))); ground.Position = new JVector(0, -10, 0); ground.Tag = BodyTag.DontDrawMe; ground.IsStatic = true; Demo.World.AddBody(ground); //ground.Restitution = 1.0f; ground.Material.KineticFriction = 0.0f; quadDrawer = new QuadDrawer(Demo, 100); Demo.Components.Add(quadDrawer); }