Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public void Draw(SpriteBatch sb, AnimationManager animationManager)
 {
     if (text != null)
         sb.Draw(text, this.pos, animationManager.GetSourceRect, Color.White, angle, origin, scale, effect, depth);
 }