yaakov rubenchik
yaakov rubenchik

Reputation: 49

creating different screens in libgdx game

I want to make a menu of 2 buttons(play, shop). The play button would start the game, and the shop button would open a screen, in which the player can choose his main character.

How can I do this?

Upvotes: 0

Views: 238

Answers (1)

tobloef
tobloef

Reputation: 1891

Please take a look at the libGDX wiki for various starter tutorials. Google would also definitely have helped you on this one.

What you need are a Game class and some Screen classes. You have a Screen for each screen of your game. Here's a guide on how to write a simple game with Screens.

libGDX Wiki - Extending the simple game

Upvotes: 3

Related Questions