Exemplo n.º 1
0
 public void Startcredits()
 {
     startScreen = null;
     creditScreen = new CreditScreen(this);
 }
Exemplo n.º 2
0
 public void StartTutoScreen()
 {
     startScreen = null;
     tutoScreen = new TutoScreen(this);
     currentScreen = Screen.TutoScreen;
 }
Exemplo n.º 3
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            startScreen = new StartScreen(this);
            currentScreen = Screen.StartScreen;
            // load

            _ballBounceWall = Content.Load<SoundEffect>("grassland");
            SoundEffectInstance instance = _ballBounceWall.CreateInstance();
            instance.IsLooped = true;
            _ballBounceWall.Play(0.1f, 0.0f, 0.0f); // reglage du volume.

            base.LoadContent();
        }
Exemplo n.º 4
0
        public void StartStartScreen()
        {
            chooseLevelScreen = null;
            chooseWorldScreen = null;

            startScreen = new StartScreen(this);
        }
Exemplo n.º 5
0
        public void StartSelWorld()
        {
            startScreen = null;
               // endScreen = null;
            chooseLevelScreen = null;

            chooseWorldScreen = new ChooseWorldScreen(this);
            currentScreen = Screen.ChooseWorldScreen;
        }
Exemplo n.º 6
0
        public void StartSelLevel3()
        {
            chooseWorldScreen = null;
            startScreen = null;
            chooseLevelScreen = null;
            chooseLevelScreen2 = null;

            chooseLevelScreen3 = new ChooseLevelScreen3(this);
        }
Exemplo n.º 7
0
 public void Startgamew()
 {
     startScreen = null; // toute les autres a null ?
     loadingScreen = null;
     gamePlayScreen = new GamePlayScreen(this);
     //currentScreen = Screen.GamePlayScreen;
 }
Exemplo n.º 8
0
 public void Startgame()
 {
     //   startScreen = null; // toute les autres a null ?
        // IsLoading = true; // is loading ? dat new new
     //loadingScreen = new LoadingScreen(this);
     //urrentScreen = Screen.LoadingScreen;
     startScreen = null; // toute les autres a null ?
     loadingScreen = null;
     gamePlayScreen = new GamePlayScreen(this);
       //  gamePlayScreen = new GamePlayScreen(this);
     //currentScreen = Screen.GamePlayScreen;
 }