Ejemplo n.º 1
0
        public override void Draw(SpriteBatch spriteBatch, Loc offset)
        {
            DirSheet sheet = getAnimSheet();

            if (sheet == null)
            {
                return;
            }
            //draw the anim associated with this attack (aka, the projectile itself)
            Loc start = GetDrawLoc(offset);

            sheet.DrawDir(spriteBatch, start.ToVector2(), Anim.GetCurrentFrame(time, sheet.TotalFrames), DirExt.AddAngles(Dir, Anim.AnimDir));
        }
Ejemplo n.º 2
0
        public override void Draw(SpriteBatch spriteBatch, Loc offset)
        {
            DirSheet sheet = getAnimSheet();

            if (sheet == null)
            {
                return;
            }
            //draw the anim associated with this attack (aka, the arcing projectile itself)
            Loc start = GetDrawLoc(offset);

            sheet.DrawDir(spriteBatch, new Vector2(start.X, start.Y - LocHeight), Anim.GetCurrentFrame(time, sheet.TotalFrames), Anim.GetDrawDir(User.CharDir));
        }
Ejemplo n.º 3
0
        public override void Draw(SpriteBatch spriteBatch, Loc offset)
        {
            if (Anim.AnimIndex == "")
            {
                return;
            }
            //draw the anim associated with this attack
            Loc start = GetDrawLoc(offset) + Dir.GetLoc() * AnimOffset;

            GraphicsManager.GetAttackSheet(Anim.AnimIndex).DrawDir(spriteBatch, start.ToVector2(), Anim.GetCurrentFrame(time, GraphicsManager.GetAttackSheet(Anim.AnimIndex).TotalFrames), DirExt.AddAngles(Dir, Anim.AnimDir));
        }