public override void Draw(GameTime gameTime) { ScreenManager.SpriteBatch.Begin(SpriteBlendMode.AlphaBlend); _agent.Draw(ScreenManager.SpriteBatch); _springRectangleRope1.Draw(ScreenManager.SpriteBatch); _springRectangleRope2.Draw(ScreenManager.SpriteBatch); _platform1.Draw(ScreenManager.SpriteBatch); _platform2.Draw(ScreenManager.SpriteBatch); _platform3.Draw(ScreenManager.SpriteBatch); _floor.Draw(ScreenManager.SpriteBatch); _angularSpringLever1.Draw(ScreenManager.SpriteBatch); _angularSpringLever2.Draw(ScreenManager.SpriteBatch); _angularSpringLever3.Draw(ScreenManager.SpriteBatch); _angularSpringLever4.Draw(ScreenManager.SpriteBatch); ScreenManager.SpriteBatch.Draw(_hangingTexture, _hangingGeom.Position, null, Color.White, _hangingGeom.Rotation, new Vector2(_hangingTexture.Width / 2f, _hangingTexture.Height / 2f), 1, SpriteEffects.None, 0); _border.Draw(ScreenManager.SpriteBatch); if (_mousePickSpring != null) { _lineBrush.Draw(ScreenManager.SpriteBatch, _mousePickSpring.Body.GetWorldPosition(_mousePickSpring.BodyAttachPoint), _mousePickSpring.WorldAttachPoint); } ScreenManager.SpriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { ScreenManager.SpriteBatch.Begin(SpriteBlendMode.AlphaBlend); _agent.Draw(ScreenManager.SpriteBatch); _springRectangleRope1.Draw(ScreenManager.SpriteBatch); _springRectangleRope2.Draw(ScreenManager.SpriteBatch); _platform1.Draw(ScreenManager.SpriteBatch); _platform2.Draw(ScreenManager.SpriteBatch); _platform3.Draw(ScreenManager.SpriteBatch); _angularSpringLever1.Draw(ScreenManager.SpriteBatch); _angularSpringLever2.Draw(ScreenManager.SpriteBatch); _angularSpringLever3.Draw(ScreenManager.SpriteBatch); _angularSpringLever4.Draw(ScreenManager.SpriteBatch); ScreenManager.SpriteBatch.Draw(_hangingTexture, _hangingGeom.Position, null, Color.White, _hangingGeom.Rotation, new Vector2(_hangingTexture.Width / 2f, _hangingTexture.Height / 2f), 1, SpriteEffects.None, 0); ScreenManager.SpriteBatch.End(); base.Draw(gameTime); }