Reputation:
I'm trying to do a game like Mega Jump.
Now I have a problem: I have no idea how to get on all devices the same number of columns for items. And how to get the player get to the opposite of the screen if he reaches the screen end.
I'm working whith a OrthographicCamera and box2d.
Upvotes: 0
Views: 84
Reputation: 147
for all devices you could use Viewports and for the screen end you should calculate the dimensions(Gdx.graphics.getWidth or Gdx.graphics.getHeight). The player should be actor so create a stage and a group, add group to the stage and actor to the group. Hope this may help you.
Upvotes: 2