protected override void Update(GameTime gameTime) { /// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> //Set FPS to fixed value, 30 fps //this.TargetElapsedTime = TimeSpan.FromMilliseconds(1000/30); //The return value is het nieuwe level of hetzelfde level! ButtonCheck.Update(); _level = _level.Update(gameTime); //Update every object + CheckCollision with every object (tile, enemy, bullet) }
protected override void LoadContent() { /// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> // Create a new SpriteBatch, which can be used to draw textures. _spriteBatch = new SpriteBatch(GraphicsDevice); //Load the sprite of all the gameobjects! LoadContents(); //TODO: DENK HIER TERUG OVER NA! Screen._height = 1376; Screen._width = 3328; GameObject.MaxWidth = 3328; _level = new Begin(); }