Exemplo n.º 1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            font = Content.Load<SpriteFont>(@"Arial");

            playerAnimations = new PlayerAnimations(Content);
            playerInterface = new Interface(Content);
            player = new Player(playerAnimations);
            keyboardInput = new KeyboardInput();
            database = new DatabaseClass();
            collision = new Collision();
            enemies = new List<Enemy>();
            level = new Level(Content);
            menu = new Menu(Content);
            text = new Text();

            GlobalVars.currentState = GlobalVars.gameState.mainMenu;
        }
Exemplo n.º 2
0
 public void NextLevel(ContentManager Content, Menu menu)
 {
     if (currentLevel < aantalLevels - 1)
     {
         currentLevel += 1;
         GlobalVars.currentState = GlobalVars.gameState.normalLevel;
     }
     else
     {
         currentLevel = 0;
         GlobalVars.currentState = GlobalVars.gameState.highScoreInvullen;
         menu.huidigeMenuOpties = Menu.MenuOpties.MainMenuStart;
     }
     levelLoaded = false;
     LoadLevel(Content);
 }