Hi guys,
I am trying to figure out the easiest way to render my scrollable tile map to a custom size that is smaller than my window. The game Unreal World is a perfect example of what I want to to do as shown below. For those not familiar with the game, the large square portion on the left hand side of the image renders a scrollable world made up of tiles while the other GUI elements are placed above and to the right.
Off the top of my head if I was using straight LWJGL I would probably just create a custom Camera class, set the “viewport” size that I want and use glTranslatef to “scroll”. The OrthographicCamera class doesn’t seem to allow for a viewport any smaller than the window itself. I thought about the Viewport class but am not very familiar with it and the different built in types will not do what I need. I would prefer a solution using LibGDX but I welcome your thoughts on alternative ways to do it because I am starting to overthink it and need some other perspectives (no pun intended).
Thanks!