8 Mayıs 2015 Cuma

android apk Tutorial (LibGDX & MTX) Test6_CoolMainMenu

android apk Tutorial (LibGDX & MTX) Test6_CoolMainMenu android game , android apk Tutorial (LibGDX & MTX) Test6_CoolMainMenu android free download , android apk Tutorial (LibGDX & MTX) Test6_CoolMainMenu mobile game android apk Tutorial (LibGDX & MTX) Test6_CoolMainMenu android free download
TEST SCREEN

Everything is same with previous test screens. I added a table and buttons int also, set a sliding animation to table









-



















SETTING UP ANIMATED MENU

Extremely fast implementation

  1. Created a table
  2. Gave a slidng animation action
  3. Added 3 ButtonGames and Texts 
  4. Done!

 private void setUpMainMenu() {
// #6.1 TEST
// Create table button
// Animate from outside in
// ########################################################################
Table table = MenuCreator.createTable(true, Assets.getSkin());
table.setPosition(getStage().getWidth() + 50, table.getY());
table.addAction(Actions.moveTo(getStage().getWidth() - 550, table.getY(), 0.9f));
table.row();
getStage().addActor(table);

// #6.2 TEST
// Random buttons
// ###############################################################################
ButtonGame btnLevels = MenuCreator.createCustomGameButton(Assets.btnAllMenu,Assets.btnAllMenuPressed);
btnLevels.setText(Assets.font2, "Levels", true);
btnLevels.setTextPosXY(25, 45);
table.add(btnLevels).size(230, 62).uniform().pad(2);
table.row();

ButtonGame btnSettings = MenuCreator.createCustomGameButton(Assets.btnAllMenu,Assets.btnAllMenuPressed);
btnSettings.setText(Assets.font2, "Settings", true);
btnSettings.setTextPosXY(25, 45);
table.add(btnSettings).size(230, 62).uniform().pad(2);
table.row();

ButtonGame btnAbout = MenuCreator.createCustomGameButton(Assets.btnAllMenu,Assets.btnAllMenuPressed);
btnAbout.setText(Assets.font2, "About", true);
btnAbout.setTextPosXY(25, 45);
table.add(btnAbout).size(230, 62).uniform().pad(2);
}

0 yorum:

Yorum Gönder