Multiple cameras in libgdx ( probably similar in other frameworks )
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been trying to solve this problem for two days and I have given up trying to find an existing solution. I have started learning libgdx and finished a couple of tutorials. And now I have tried to use all that I have learned and create a simple side scrolling game. Now, I know that there are libgdx examples of this, but I haven't found a one that incorporates Box2d with scene2d and actors as well as tiled maps. My main problem is with the cameras. You need a camera for the Stage (which as far as I know is used for the projection matrix