public Achtergrond(ContentManager content, Camera2d cam) { cnt = content; LoadAchtergrond(); camera = cam; positie.X = camera.Transform.Translation.X; positie.Y = camera.Transform.Translation.Y; cameraX = positie.X; cameraY = positie.Y; }
/// <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(); }