public override void Draw(SpriteBatch sb)
        {
            switch (state)
            {
            case GameState.Unloaded:
                //don't draw
                break;

            case GameState.Options:
                levels[activeLevel].Draw(sb);
                refOptions.Draw(sb);
                break;

            case GameState.Instructions:
                levels[activeLevel].Draw(sb);
                refInstructions.Draw(sb);
                break;

            case GameState.Dead:
                levels[activeLevel].Draw(sb);
                deadImg.Draw(sb);
                break;

            case GameState.Pause:
                levels[activeLevel].Draw(sb);
                pauseImg.Draw(sb);
                break;

            default:
                levels[activeLevel].Draw(sb);
                break;
            }
        }
Beispiel #2
0
 public override void Draw(SpriteBatch sb)
 {
     background.Draw(sb);
 }