All pastes #2052379 Raw Edit

Switch!

public text v1 · immutable
#2052379 ·published 2011-04-30 23:08 UTC
rendered paste body
                switch (selectionNumber)
                {
                    case 1: spriteBatch.DrawString(gameFont, "Single Player", new Vector2((GraphicsDevice.Viewport.Width / 20), (GraphicsDevice.Viewport.Height / 8)), Color.Red);
                        spriteBatch.DrawString(gameFont, "Highscore", new Vector2((GraphicsDevice.Viewport.Width / 20), (GraphicsDevice.Viewport.Height / 8) * 2), Color.White);
                        spriteBatch.DrawString(gameFont, "Attract Mode", new Vector2((GraphicsDevice.Viewport.Width / 20), (GraphicsDevice.Viewport.Height / 8) * 3), Color.White);
                        if (menuSelection == true)
                        {
                            state = GameState.singlePlayer;
                            setUp();
                            setBlock(levelNumber);
                        }
                        break;
                 }