LIBGDX creating a main menu

后端 未结 3 471
感动是毒
感动是毒 2021-02-06 17:19

So i want to create a mainmenu for my game and i\'m stuck on what to do next i have all the art done and it\'s all in layers and packed in a .pack

public class M         


        
相关标签:
3条回答
  • 2021-02-06 17:31

    Basically you need to 1. create a skin, and 2. we need to add buttionTextureStyle to it. 3. Don't forget to add fonts, it took me a hour to figure out that fonts are not set by default like other parameters of buttonTextureStyle 4. and then you create a button with created skin 5. and then add that button to the stage.

    Phew! I have found it helpful, Maybe it can help you as well: http://www.sadafnoor.com/blog/how-to-create-simple-menu-in-libgdx/

    0 讨论(0)
  • 2021-02-06 17:34

    i think it will be easy if u use scene2D that will handle all the complexity and help you to create a nice looking UI with a little bit of code .

    you may need to check this link https://github.com/libgdx/libgdx/wiki/Scene2d.ui

    0 讨论(0)
  • 2021-02-06 17:50

    Have a look at this tutorial which sums up what you want exactly:

    LibGDX: Using a Splash Screen or Menu

    0 讨论(0)
提交回复
热议问题