And then a second layer would be rendered in the middle of the screen which will be the game window and its width and height will be obviously smaller than the base layer.Īt the moment, the game is rendered from the top left corner of the screen until all the tiles have been rendered out.
The base layer is the whole screen with some graphics on the sides added to it and a font displaying score. So for this to work, I would need a way to make 'screen layers'. I've attached an imageto illustrate what I'm looking for: However, I don't want the game window to lose it proportions so I figured I would add borders to the sides of the game window in order to support wide screens.
I am working on a Tank game as a school project and I am trying to make it as user-friendly as possible (with things like customizable keybindings, display settings).