Exemplo 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), Anim.GetDrawDir(Dir));
        }
Exemplo n.º 2
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), Anim.GetDrawDir(Dir));
        }