Asteroids.Classes.MainMenu.MainMenu C# (CSharp) Method

MainMenu() public method

public MainMenu ( Microsoft.Xna.Framework.Content.ContentManager Content, GraphicsDevice graphicsDevice, ControlHandler ch ) : System
Content Microsoft.Xna.Framework.Content.ContentManager
graphicsDevice GraphicsDevice
ch ControlHandler
return System
        public MainMenu(ContentManager Content, GraphicsDevice graphicsDevice, ControlHandler ch)
        {
            this.Content = Content;
            this.ch = ch;
            background = new Background(graphicsDevice, Content);
            sizeSelectArrow = new Vector2(graphicsDevice.Viewport.Width / 900 * 30, graphicsDevice.Viewport.Height / 500 * 30);
            posSelectArrow = new Vector2(4.5f, 2.6f);
            recSelectArrow = new Rectangle(graphicsDevice.Viewport.Width / (int)posSelectArrow.X, graphicsDevice.Viewport.Height / (int)posSelectArrow.Y, (int)sizeSelectArrow.X, (int)sizeSelectArrow.Y);

            framesPassed = 0;
            selectedNumber = 0;
            currentGameState = 2;
        }