Package com.google.gwt.maeglin89273.game.mengine.layer

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


      root.addComponentOnLayer(buttons[i]);
    }
    root.addComponentOnLayer(table);
    root.addComponentOnLayer(progressLabel);
    root.addComponentOnLayer(totalLabel);
    root.addLayer(new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/leaderboard.png"),
        new Point(0,0), getGameWidth(), getGameHeight()));
   
    //connect to the server
    table.showText("Connecting...");
    reconnect();
View Full Code Here


  /**
   *
   */
  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

   *
   */
  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

   
    for(GameButton button:buttons){
      root.addComponentOnLayer(button);
    }
     
    root.addLayer(new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/welcome_bg.png"), new Point(0,0), getGameWidth(), getGameHeight()));
    root.addComponentOnLayer(new GameLabel(new Point(getGameWidth()-5,3), TextAlign.RIGHT, TextBaseline.TOP, ASBOTXConfigs.VERSION, ASBOTXConfigs.Color.TEXT, ASBOTXConfigs.getCGFont(12)));
    root.addComponentOnLayer(creator.getWorld());
  }
View Full Code Here

    @Override
    public void doTask() {
     
      root.removeLayer(0);
      root.insertLayer(0,
          new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/hints/"+level.getWorldType()+"_hint_"+level.getLevelNumber()+".png"),
          new Point((getGameWidth()-HINT_WIDTH)/2,(getGameHeight()-HINT_HEIGHT)/2), HINT_WIDTH, HINT_HEIGHT));
      clickLabel.setText("click anywhere to continue");
      clickLabel.setY(30);
      button=null;
    }
View Full Code Here

  public FadingPage(ImageLayer img,Page nextPage){
    super(nextPage);
    this.layer=img;
  }
  public FadingPage(String sheetPath,int imgWidthInGame,int imgHeightInGame,Page nextPage) {
    this(new ImageLayer(MEngine.getAssetManager().getSpriteSheet(sheetPath),
      new Point((getGame().getGameInfo().getWidth()-imgWidthInGame)/2,
            (getGame().getGameInfo().getHeight()-imgHeightInGame)/2),
             imgWidthInGame,imgHeightInGame),nextPage);
       
  }
View Full Code Here

   
    //initialize layers
    worldLayer=new WorldLayer(creator.getWorld(),level.getCameraViewPoint(),2,0.45f);
    camera=worldLayer.getCamera();
    worldLayer.insertLayer(0, new ComponentLayer(manager.getBlueMark(0)));
    worldLayer.insertLayer(1,new Layer(){

      @Override
      public void update() {
        creatorPanel.updatePenPosition(camera.ConvertToWorldPosition(MEngine.getMousePosition()));
      }
View Full Code Here

    //add listeners
    creator.addPropertiesChangeListener(creatorPropertiesBar);
    creatorPanel.addDefiningListener(creatorPropertiesBar);
   
    //initialize layers
    worldLayer=new WorldLayer(creator.getWorld(),level.getCameraViewPoint(),2,0.45f);
    camera=worldLayer.getCamera();
    worldLayer.insertLayer(0, new ComponentLayer(manager.getBlueMark(0)));
    worldLayer.insertLayer(1,new Layer(){

      @Override
View Full Code Here

  private GameButton button;
  private WorldMenu menu;
 
  private Point mP=null;
  public WorldSelectPage(){
    super(new Point(getGameWidth()-25,25), new Point(getGameWidth()-55,25),50,
        TextAlign.RIGHT, ASBOTXConfigs.Color.DARK_GRAY);
  }
View Full Code Here

   * @see com.google.gwt.maeglin89273.game.mengine.game.HasGameLoop#update()
   */
  @Override
  public void update() {
    if(mP!=null&&!isBlocked()){
      Point tmp=MEngine.getMousePosition();
      menu.move((float)mP.delta(tmp).getVectorX()*1.3f);
      mP=tmp;
    }
    super.update();
  }
 
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.mengine.layer.ImageLayer

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.