Exemplo n.º 1
0
        //------------------------------------------------------------------------------------
        private void StartGame()
        {
            scrPlay = new Screen_Play(this, spriteBatch);
            Components.Add(scrPlay);
            scrPlay.Hide();

            scrPause = new scrPopup(this, spriteBatch, Content.Load<Texture2D>("Graphics/Backgrounds/Pause"), scrPlay, Menu.MenuItems(new PAUSE_OPTIONS()));
            Components.Add(scrPause);
            scrPause.Hide();

            scrGameOver = new scrPopup(this, spriteBatch, Content.Load<Texture2D>("Graphics/Backgrounds/GameOver"), scrPlay, Menu.MenuItems(new GAMEOVER_OPTIONS()));
            Components.Add(scrGameOver);
            scrGameOver.Hide();
        }
Exemplo n.º 2
0
        protected override void LoadContent()
        {
            frmHighScores = new frmHighScores();

            spriteBatch = new SpriteBatch(GraphicsDevice);
            spriteFont = Content.Load<SpriteFont>("GameFont");
            spriteFont.LineSpacing = 20;

            scrStart = new Screen_Basic(this, spriteBatch, Content.Load<Texture2D>("Graphics/Backgrounds/Start"), Menu.MenuItems(new MENU_OPTIONS()));
            Components.Add(scrStart);
            scrStart.Hide();

            scrInstructions = new scrPopup(this, spriteBatch, Content.Load<Texture2D>("Graphics/Backgrounds/Instructions"), scrStart, 500, 500);
            Components.Add(scrInstructions);
            scrInstructions.Hide();

            scrActive = scrStart;
            scrActive.Show();
        }