How to have the game world get rendered on just a part of the screen?

Posted by VictorB on Game Development See other posts from Game Development or by VictorB
Published on 2014-01-28T21:11:18Z Indexed on 2014/06/08 3:40 UTC
Read the original article Hit count: 152

Filed under:
|

I am implementing a game on both Desktop and Android.

The Desktop version will just rely on the keyboard to handle the user input on the game screen, whilst the Android one will have to have a set of buttons placed in a bar at the bottom of the game screen, using a Stage.

Consequently, I am expecting the game world to take up the entire space available on the Desktop screen, whilst on Android it should expand to the entire width of the screen, and to the screen height minus the height of the buttons bar I've mentioned.

What would be an appropriate approach of handling space sharing between the game world and the buttons bar?

Thank you.

© Game Development or respective owner

Related posts about java

Related posts about libgdx