/// <summary> /// This method overrides the base OnUpdateFrame method from GameWindow /// /// It updates each frame, and contains the majority of the game logic /// </summary> /// <param name="e"></param> protected override void OnUpdateFrame(FrameEventArgs e) { base.OnUpdateFrame(e); //Trigger player movement player.movement(this); //Run collision detection collisionDetector.collisions(platforms, player, Width, Height); }