Package com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui

Examples of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.Glass


   */
  @Override
  public void onScreen() {
    saveAndSetStatus();
    this.board=new ScoreBoard(new Point(getGameWidth()/2,getGameHeight()/2));
    layers.insertLayer(0,new ComponentLayer(new Glass(getGameWidth(),getGameHeight())));
    layers.insertLayer(0,new ComponentLayer(board));
   
   
  }
View Full Code Here


      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));
    root.addComponentOnLayer(clickLabel);
    root.addComponentOnLayer(new Glass(getGameWidth(),getGameHeight()));
    root.addLayer(new Layer(){

      @Override
      public void update() {
        // TODO Auto-generated method stub
View Full Code Here

        manager.getDetector().detect(6, null);
      }
     
    });
    //initialize UIs
    gravityIndicator=new GravityIndicator(creator.getWorld().getPosition(),250,creator.getGravityController());
       
    CreatorPropertiesBar creatorPropertiesBar=new CreatorPropertiesBar(getGameWidth(),
                                      getGameHeight(),
                                      creator.getMaxPower(),
                                      ((ASBOTXGame)getGame()).getLocalPlayer().getScoreAt(level),
View Full Code Here

        getGame().setPage(new ScoreShowingPage(rootLayer,level,score));
      }
     
    });
    //initialize UIs
    gravityIndicator=new GravityIndicator(creator.getWorld().getPosition(),250,creator.getGravityController());
       
    CreatorPropertiesBar creatorPropertiesBar=new CreatorPropertiesBar(getGameWidth(),
                                      getGameHeight(),
                                      creator.getMaxPower(),
                                      ((ASBOTXGame)getGame()).getLocalPlayer().getScoreAt(level),
View Full Code Here

   * @see com.google.gwt.maeglin89273.game.mengine.page.Page#onScreen()
   */
  @Override
  public void onScreen() {
   
    buttons[0]=new BackButton(new Point(55,getGameHeight()-60), 50);
    buttons[1]=new RefreshButton(new Point(getGameWidth()/2,getGameHeight()-60),50);
   
    table=new LeaderboardTable(new Point(getGameWidth()/2,getGameHeight()/2));
    progressLabel=new GameLabel(new Point(getGameWidth()/2,108), TextAlign.CENTER, TextBaseline.MIDDLE,
        "", ASBOTXConfigs.Color.BORDER_DARK_GRAY, ASBOTXConfigs.getCGFont(12));
View Full Code Here

  public CreatorPanel(Creator creator,double screenWidth,double screenHeight) {
    super(new Point(screenWidth*3/16,screenHeight-screenWidth*1/16), screenWidth*3/8, screenWidth*1/8);
    double halfH=getHeight()/2;
    double oneThirdW=getWidth()/3;
    this.creator=creator;
    this.keys[AREA_KEY_INDEX]=new AreaKey(new Point(getX()-oneThirdW,getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getAreaDefinerKinds());
    this.keys[LINE_KEY_INDEX]=new LineKey(new Point(getX(),getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getLineDefinerKinds());
    this.keys[DOT_KEY_INDEX]=new DotKey(new Point(getX()+oneThirdW,getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getDotDefinerKinds());
 
  }
View Full Code Here

    double halfH=getHeight()/2;
    double oneThirdW=getWidth()/3;
    this.creator=creator;
    this.keys[AREA_KEY_INDEX]=new AreaKey(new Point(getX()-oneThirdW,getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getAreaDefinerKinds());
    this.keys[LINE_KEY_INDEX]=new LineKey(new Point(getX(),getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getLineDefinerKinds());
    this.keys[DOT_KEY_INDEX]=new DotKey(new Point(getX()+oneThirdW,getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getDotDefinerKinds());
 
  }
View Full Code Here

    super(new Point(screenWidth*3/16,screenHeight-screenWidth*1/16), screenWidth*3/8, screenWidth*1/8);
    double halfH=getHeight()/2;
    double oneThirdW=getWidth()/3;
    this.creator=creator;
    this.keys[AREA_KEY_INDEX]=new AreaKey(new Point(getX()-oneThirdW,getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getAreaDefinerKinds());
    this.keys[LINE_KEY_INDEX]=new LineKey(new Point(getX(),getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getLineDefinerKinds());
    this.keys[DOT_KEY_INDEX]=new DotKey(new Point(getX()+oneThirdW,getTopY()+halfH),oneThirdW,getHeight(),creator.getLevel().getDotDefinerKinds());
 
  }
View Full Code Here

    }
   
    //init here
    manager=new TutorialManager(MEngine.getAssetManager().getJson("configs/tutorial_configs.json"),
        getGameWidth(),getGameHeight(),2,TASK_HANDLERS);
    this.level=new Level(MEngine.getAssetManager().getJson("levels/tutorial_level.json"),
     new Point(getGameWidth()/2.0,getGameHeight()/2.0));
    this.creator=new Creator(level);
   
    creator.build(new GameOverCallback(){
View Full Code Here

    super(new GameInfo(720,540,ASBOTXAssetsBundleWithLookup.INSTANCE));
  }
 
  @Override
  public void init() {
    setPage(new ASBOTXLoadingAssetsPage());
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.ashinyballonthecross.client.core.ui.Glass

Copyright © 2018 www.massapicom. 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.