Exemplo n.º 1
0
 public AllLevels(ContentManager content)
 {
     startScherm = new Startscherm(content);
     eindScherm  = new Eindscherm(content);
     level1      = new Level1(content);
     level2      = new Level2(content);
     huidigLevel = startScherm;  //dient aangepast te worden naar startscherm
 }
Exemplo n.º 2
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

            camera = new Camera2d();
            // alle levels initiëren
            levels      = new AllLevels(Content);
            startscherm = new Startscherm(Content);
            eindscherm  = new Eindscherm(Content);
            achtergrond = new Achtergrond(Content, camera);

            NextLevel();
        }