It's very important for any game to have some global configurations - like, display mode(Landscape or Portrait), device width and…