예제 #1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (!mDamaged)
     {
         mAtlas.Draw(spriteBatch, mSpriteName, mAnimationManager.GetCurrentSequenceKey(), mPosition, mInvuln ? 0.3f : 1.0f);
     }
 }
예제 #2
0
        public void Draw(SpriteBatch sb)
        {
            SpriteEffects effect = mMoveState == MoveState.RIGHT ? SpriteEffects.None : SpriteEffects.FlipHorizontally;

            mEnemyAtlas.Draw(sb, mSpriteName, mAnimationManager.GetCurrentSequenceKey(), mPosition, effect);
        }