예제 #1
0
파일: Enemy.cs 프로젝트: alyons/ChaosDrive
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     if (ActiveSprite != null && !isDisposed)
     {
         ActiveSprite.Draw(spriteBatch);
     }
 }
예제 #2
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
            spriteBatch.Begin();

            ActiveSprite?.Draw(spriteBatch);
            staticTextSprite.Draw(spriteBatch);

            spriteBatch.End();
            base.Draw(gameTime);
        }
예제 #3
0
 public void Draw(SpriteBatch spriteBatch)
 {
     ActiveSprite.Draw(spriteBatch);
 }