Examples of GroupLayer


Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

  /**
   *
   */
  protected HasLoginButtonPage(final Point buttonPos,final Point labelPos,final int buttonBounds,final TextAlign labelAlign,final CssColor textColor) {
    game=(ASBOTXGame) getGame();
    root=new GroupLayer();
   
    if(game.getLoginInfo()==null){
      game.getPlayerService().checkLogin(new CheckLoginRequest(ASBOTXConfigs.CLOSE_PAGE_PATH,game.getLocalPlayer().getPlayer()),
          new AsyncCallback<CheckLoginResponse>(){
 
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

         
    });
    worldLayer.addComponentOnLayer(gravityIndicator)
       
       
    rootLayer=new GroupLayer();
   
    GroupLayer tutorialRoot=new GroupLayer();
    tutorialRoot.addComponentOnLayer(manager.getStepBoard());
    tutorialRoot.addComponentOnLayer(manager.getBlueMark(1));
    tutorialRoot.addComponentOnLayer(manager.getTasksList());
    tutorialRoot.addComponentOnLayer(manager.getButton());
   
    rootLayer.addLayer(tutorialRoot);
   
    rootLayer.addComponentOnLayer(creatorPanel);
    rootLayer.addComponentOnLayer(creatorPropertiesBar);
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

  }
  @Override
  public void onScreen() {
    final ASBOTXGame game=(ASBOTXGame)getGame();
    game.initLocalPlayer();
    layers=new GroupLayer();
    layers.addComponentOnLayer(new GameLabel(new Point(getGameWidth()/2,getGameHeight()/2),
        TextAlign.CENTER, TextBaseline.MIDDLE, "Loading...", ASBOTXConfigs.Color.WHITE,
        ASBOTXConfigs.getCGFont(26)));
    layers.addComponentOnLayer(new LoadingBar(35));
    layers.addComponentOnLayer(new Glass(getGameWidth(), getGameHeight()));
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

  private BackButton button;
  /**
   *
   */
  public EndingPage() {
    root=new GroupLayer();
    img=new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/ending.png"), getGameWidth(), getGameHeight());
    background=new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/blue_bg.png"),getGameWidth(),getGameHeight());
    button=new BackButton(new Point(55,getGameHeight()-55), 50);
  }
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

  /**
   * @param game
   */
  public ScoreShowingPage(GroupLayer gameRootLayer,Level level,int score) {
   
    this.layers=new GroupLayer();
    this.layers.addLayer(gameRootLayer);
    this.level = level;
    this.score = score;
    this.game=(ASBOTXGame)getGame();
    this.localPlayer=game.getLocalPlayer();
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

   */
  public InformationPage() {
    this.roll=new InformationRoll(600,540);
    this.button=new WelcomeButton(new Point(25,25),50);
    this.background=new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/gray_bg.png"), getGameWidth(), getGameHeight());
    this.root=new GroupLayer();
  }
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

  }
  @Override
  public void onScreen() {
    Point center=new Point(getGameWidth()/2,getGameHeight()/2);
    clickLabel=new GameLabel(new Point(center.getX(),center.getY()+32), TextAlign.CENTER, TextBaseline.MIDDLE, "click here to continue", ASBOTXConfigs.Color.WHITE, clickTextFont);
    root=new GroupLayer();
    if(level.hasHint()){
      this.button=new HintButton(new Point(center.getX(),center.getY()+225));
      root.addComponentOnLayer(button);
    }
    root.addComponentOnLayer(new GameLabel(center, TextAlign.CENTER, TextBaseline.MIDDLE, "Pause", ASBOTXConfigs.Color.WHITE, pauseTextFont));
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

   */
  public GuidePage() {
    buttons[0]=new GuideButton(getGameHeight()/2);
    buttons[1]=new WelcomeButton(new Point(25,25),50);
    mainLayer=new WorldLayer(new TutorialImage(),1);
    root=new GroupLayer();
    this.camera=mainLayer.getCamera();
  }
View Full Code Here

Examples of com.google.gwt.maeglin89273.game.mengine.layer.GroupLayer

*
*/
public abstract class GamePage extends Page {
  protected GroupLayer rootLayer;
  public GamePage(){
    this.rootLayer=new GroupLayer();
  }
View Full Code Here

Examples of playn.core.GroupLayer

        });
        bg.setDepth(-1);
        layer.add(bg);

        // test our simple frames
        final GroupLayer box = graphics().createGroupLayer();
        layer.addAt(box, 0, 100);
        Image image = assets().getImage("images/spritesheet.png");
        image.addCallback(new Callback<Image>() {
            public void onSuccess (Image image) {
                SimpleFrames frames = new SimpleFrames(image, 60, 60, 60);
                anim.repeat(box).flipbook(box, new Flipbook(frames, 66));
                anim.repeat(box).tweenX(box).to(width-frames.width()).in(2000).easeInOut().then().
                    tweenX(box).to(0).in(2000).easeInOut();
            }
            public void onFailure (Throwable error) {} // n/a
        });

        // test our packed frames
        final Image packed = assets().getImage("images/packed.png");
        assets().getText("images/packed.json", new Callback<String>() {
            public void onSuccess (String json) {
                GroupLayer box = graphics().createGroupLayer();
                layer.addAt(box, 100, 200);
                anim.repeat(box).flipbook(
                    box, new Flipbook(new PackedFrames(packed, json().parse(json)), 99)).then().
                    setVisible(box, false).then().delay(500).then().setVisible(box, true);
            }

            public void onFailure (Throwable t) {
                t.printStackTrace(System.err);
            }
        });
        GroupLayer pbox = graphics().createGroupLayer();
        layer.addAt(pbox, 300, 200);
        anim.repeat(pbox).flipbook(
            pbox, new Flipbook(new PackedFrames(packed, PACKED), 99)).then().
            setVisible(pbox, false).then().delay(500).then().setVisible(pbox, true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.