• <tfoot id='lAIpk'></tfoot>

    1. <small id='lAIpk'></small><noframes id='lAIpk'>

      <legend id='lAIpk'><style id='lAIpk'><dir id='lAIpk'><q id='lAIpk'></q></dir></style></legend>
      <i id='lAIpk'><tr id='lAIpk'><dt id='lAIpk'><q id='lAIpk'><span id='lAIpk'><b id='lAIpk'><form id='lAIpk'><ins id='lAIpk'></ins><ul id='lAIpk'></ul><sub id='lAIpk'></sub></form><legend id='lAIpk'></legend><bdo id='lAIpk'><pre id='lAIpk'><center id='lAIpk'></center></pre></bdo></b><th id='lAIpk'></th></span></q></dt></tr></i><div id='lAIpk'><tfoot id='lAIpk'></tfoot><dl id='lAIpk'><fieldset id='lAIpk'></fieldset></dl></div>

        • <bdo id='lAIpk'></bdo><ul id='lAIpk'></ul>
      1. LIBGDX 创建主菜单

        时间:2023-05-18
            <tbody id='LVB7r'></tbody>

        • <tfoot id='LVB7r'></tfoot>

          <legend id='LVB7r'><style id='LVB7r'><dir id='LVB7r'><q id='LVB7r'></q></dir></style></legend>
          1. <small id='LVB7r'></small><noframes id='LVB7r'>

                <i id='LVB7r'><tr id='LVB7r'><dt id='LVB7r'><q id='LVB7r'><span id='LVB7r'><b id='LVB7r'><form id='LVB7r'><ins id='LVB7r'></ins><ul id='LVB7r'></ul><sub id='LVB7r'></sub></form><legend id='LVB7r'></legend><bdo id='LVB7r'><pre id='LVB7r'><center id='LVB7r'></center></pre></bdo></b><th id='LVB7r'></th></span></q></dt></tr></i><div id='LVB7r'><tfoot id='LVB7r'></tfoot><dl id='LVB7r'><fieldset id='LVB7r'></fieldset></dl></div>

                • <bdo id='LVB7r'></bdo><ul id='LVB7r'></ul>
                  本文介绍了LIBGDX 创建主菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  所以我想为我的游戏创建一个主菜单,但我被困在下一步该做什么上

                  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 MainMenu implements Screen {
                  
                  CrazyZombies game;
                  Stage stage;
                  BitmapFont font;
                  TextureAtlas MainMenu;
                  Texture road;
                  Skin skin;
                  SpriteBatch batch;
                  
                  public MainMenu(CrazyZombies game){
                      this.game = game;
                  }
                  
                  @Override
                  public void render(float delta) {
                      Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
                      Gdx.gl.glClearColor(0.09f, 0.28f, 0.2f, 1);
                  
                      stage.act(delta);
                  
                      batch.begin();
                      stage.draw();
                      batch.end();
                  }
                  
                  @Override
                  public void resize(int width, int height) {
                      if(stage == null)
                          stage = new Stage(width, height, true);
                      stage.clear();
                  
                      Gdx.input.setInputProcessor(stage);
                  
                  }
                  
                  @Override
                  public void show() {
                      batch = new SpriteBatch();
                      skin = new Skin();
                      MainMenu = new TextureAtlas("data/mainmenu/MainMenu.pack");
                  
                  }
                  
                  @Override
                  public void hide() {
                      dispose();
                  }
                  
                  @Override
                  public void pause() {
                  
                  }
                  
                  @Override
                  public void resume() {
                  
                  }
                  
                  @Override
                  public void dispose() {
                      batch.dispose();
                      skin.dispose();
                      MainMenu.dispose();
                      stage.dispose();
                  }
                  }
                  

                  如果有人能给我一些关于现在做什么的指导或教程,那就太好了,我查看了很多地方,但他们没有给我所需的答案.

                  If anyone could give me some guidelines or tutorials on what to do now it would be great i've looked in a lot of places but they have not given me the required answers.

                  推荐答案

                  看看这个总结了你想要什么的教程:

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

                  LibGDX:使用启动画面或菜单

                  这篇关于LIBGDX 创建主菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 libGDX 写入 Json 下一篇:Java LibGDX BitmapFont setScale 方法不起作用

                  相关文章

                  最新文章

                      <i id='Uv3zs'><tr id='Uv3zs'><dt id='Uv3zs'><q id='Uv3zs'><span id='Uv3zs'><b id='Uv3zs'><form id='Uv3zs'><ins id='Uv3zs'></ins><ul id='Uv3zs'></ul><sub id='Uv3zs'></sub></form><legend id='Uv3zs'></legend><bdo id='Uv3zs'><pre id='Uv3zs'><center id='Uv3zs'></center></pre></bdo></b><th id='Uv3zs'></th></span></q></dt></tr></i><div id='Uv3zs'><tfoot id='Uv3zs'></tfoot><dl id='Uv3zs'><fieldset id='Uv3zs'></fieldset></dl></div>
                        <bdo id='Uv3zs'></bdo><ul id='Uv3zs'></ul>
                    1. <tfoot id='Uv3zs'></tfoot>

                      <legend id='Uv3zs'><style id='Uv3zs'><dir id='Uv3zs'><q id='Uv3zs'></q></dir></style></legend>

                    2. <small id='Uv3zs'></small><noframes id='Uv3zs'>