예제 #1
0
 private Table buildBackgoundLayer() {
   Table layer = new Table();
   imgBackgound = new Image(skinCanyonBunny, "map");
   imgBackgound.setScale(Constants.SCALE);
   layer.add(imgBackgound);
   imgBackgound.setColor(
       imgBackgound.getColor().r, imgBackgound.getColor().g, imgBackgound.getColor().b, 0.2f);
   return layer;
 }
 private Image makeLibGDXLogo(TextureAtlas atlas) {
   Image libGdxLogo = new Image(atlas.findRegion("powered-by-libgdx"));
   libGdxLogo.getColor().a = 0f;
   libGdxLogo.addAction(Actions.fadeIn(0.125f));
   libGdxLogo.setY(Display.devicePixel(5));
   libGdxLogo.setX(Display.devicePixel(5));
   libGdxLogo.addListener(
       new VibrateClickListener() {
         @Override
         public void onClick(InputEvent event, float x, float y) {
           Platform.getBrowserUtil().launchWebBrowser("http://libgdx.badlogicgames.com");
         }
       });
   return libGdxLogo;
 }
 private Image makeHappyDroidsLogo(TextureAtlas atlas) {
   Image happyDroidsLogo = new Image(atlas.findRegion("happy-droids-logo"));
   happyDroidsLogo.getColor().a = 0f;
   happyDroidsLogo.addAction(Actions.fadeIn(0.125f));
   happyDroidsLogo.setX(
       getStage().getWidth() - happyDroidsLogo.getWidth() - Display.devicePixel(5));
   happyDroidsLogo.setY(Display.devicePixel(5));
   happyDroidsLogo.addListener(
       new VibrateClickListener() {
         @Override
         public void onClick(InputEvent event, float x, float y) {
           Platform.getBrowserUtil().launchWebBrowser(TowerConsts.HAPPYDROIDS_URI);
         }
       });
   return happyDroidsLogo;
 }