Пример #1
0
        protected override void DrawScreen(GameTime gameTime)
        {
            if (OptionsState == TowerDefense.OptionsState.Normal || OptionsState == TowerDefense.OptionsState.Music)
            {
                musicBlock.Draw(gameTime, ScreenSystem.SpriteBatch, font);
            }
            if (OptionsState == TowerDefense.OptionsState.Normal || OptionsState == TowerDefense.OptionsState.Sound)
            {
                soundBlock.Draw(gameTime, ScreenSystem.SpriteBatch, font);
            }

            ScreenSystem.SpriteBatch.DrawString(smallfont, backmessage, new Vector2((ScreenSystem.Viewport.Width - smallfont.MeasureString(backmessage).X) / 2, soundBlock.Dimensions.Bottom + smallfont.LineSpacing), Color.White);

            mouse.Draw(ScreenSystem.SpriteBatch);
        }