public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb) { if (flappedRight) { SpriteHelper.DrawCircle(sb, ragdoll._upperRightArm.Position, 2, Color.Red); } if (flappedLeft) { SpriteHelper.DrawCircle(sb, ragdoll._upperLeftArm.Position, 2, Color.Red); } }
public override void Draw(SpriteBatch sb) { //sb.Draw(dragTex, ProjectionHelper.FarseerToPixel(worldStart), null, Color.White, 0, new Vector2(dragTex.Width / 2, dragTex.Height / 2), if (drawing) { SpriteHelper.DrawCircle(sb, ProjectionHelper.FarseerToPixel(worldStart), GetPixelDragArea().diagonal * 2, new Color(100, 100, 255, 100)); } //if (drawing) // sb.Draw(dragTex, GetPixelDragArea().intRectangle, new Color(100, 100, 255, 100)); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb) { if (leftGrip) { //Vector2 pixelLoc = ProjectionHelper.FarseerToPixel(jLeftGrip.WorldAnchorA); SpriteHelper.DrawCircle(sb, jLeftGrip.WorldAnchorA, 1, Color.OrangeRed); } if (rightGrip) { //Vector2 pixelLoc = ProjectionHelper.FarseerToPixel(jRightGrip.WorldAnchorA); SpriteHelper.DrawCircle(sb, jRightGrip.WorldAnchorA, 1, Color.OrangeRed); } }
public override void Draw(SpriteBatch sb) { if (JetPack) { SpriteHelper.DrawCircle(sb, Body.Position + new Vector2(-.5f, .5f), 2, Color.Orange); } if (Flappers) { SpriteHelper.DrawCircle(sb, Body.Position + new Vector2(.5f, .5f), 2, Color.Blue); } if (SpiderSilk) { SpriteHelper.DrawCircle(sb, Body.Position + new Vector2(-.5f, -.5f), 2, Color.White); } if (PeaShooter) { SpriteHelper.DrawCircle(sb, Body.Position + new Vector2(.5f, -.5f), 2, Color.Green); } }