java - LIBGDX creating a main menu -
so want create mainmenu game , i'm stuck on next have art done , it's in layers , packed in .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 give me guidelines or tutorials on great i've looked in lot of places have not given me required answers.
have @ tutorial sums want exactly:
Comments
Post a Comment