LIBGDX creating a main menu

后端 未结 3 490
感动是毒
感动是毒 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/

提交回复
热议问题