public Player() { sprite = new SpriteEx(); pos = new Vector2(); up = new Vector2(0, -1); right = new Vector2(1, 0); speed = 600; jumping = -0.1f; charge = 0; animationManager = AnimationManager.CreateFromFile("Content\\mainchar.XML"); }
public void Draw(SpriteBatch sb, AnimationManager animationManager) { if (text != null) sb.Draw(text, this.pos, animationManager.GetSourceRect, Color.White, angle, origin, scale, effect, depth); }