예제 #1
0
 public virtual void Draw()
 {
     if (Texture != null)
     {
         SpriteBatch.Draw(Texture, Position, Color.WhiteSmoke);
     }
     else if (Animation != null)
     {
         Animation.Draw();
     }
 }
예제 #2
0
파일: Enemy.cs 프로젝트: aside6/TwinStick
 public void Draw(SpriteBatch spriteBatch)
 {
     // draw the animation
     EnemyAnimation.Draw(spriteBatch);
 }
예제 #3
0
파일: Player.cs 프로젝트: aside6/TwinStick
 public void Draw(SpriteBatch spriteBatch)
 {
     PlayerAnimation.Draw(spriteBatch);
 }
예제 #4
0
파일: Bullet.cs 프로젝트: aside6/TwinStick
 public void Draw(SpriteBatch spriteBatch)
 {
     BulletAnimation.Draw(spriteBatch);
 }