Package com.google.gwt.maeglin89273.game.mengine.asset.sprite

Examples of com.google.gwt.maeglin89273.game.mengine.asset.sprite.SpriteBlock


  private SpriteBlock spriteBlock;
  private boolean enabled=false;
  public BlueMark() {
    super(new Point(0,0), 0, 100, 100);
    int offset=3*(200+SpriteBlock.SPACING);
    this.spriteBlock=new SpriteBlock(offset,offset,200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet());
  }
View Full Code Here


  private final SpriteBlock block;
  public StepBoard(Point leftTopCorner,double centerX) {
    super(leftTopCorner, 200, 420);
    this.titleLabel=new GameLabel(new Point(centerX,30),
        TextAlign.CENTER,TextBaseline.MIDDLE,null, ASBOTXConfigs.Color.GRAY, ASBOTXConfigs.getCGFont(32));
    this.block=new SpriteBlock(0,0,200,420,MEngine.getAssetManager().getSpriteSheet("images/tutorial_steps.png"));
  }
View Full Code Here

    private SpriteBlock block;
   
    ScoreBoard(Point center) {
      super(center, 540,375);
     
      this.block=new SpriteBlock(0,0,720,500,MEngine.getAssetManager().getSpriteSheet("images/boards.png"));
      this.title=new GameLabel(new Point(getLeftX()+15,getTopY()+25), TextAlign.LEFT, TextBaseline.TOP,
          level.toString(), ASBOTXConfigs.Color.TRANSLUCENT_DARK_GRAY, ASBOTXConfigs.getCGFont(35));
      double buttonsY=getBottomY()-20;
      Point leftButtonPos=new Point(getX()-BUTTONS_SPACING,buttonsY);
      Point centerButtonPos=new Point(getX(),buttonsY);
View Full Code Here

      }
    }
    private class LevelMenuButton extends BoxButton{
      public LevelMenuButton(Point p, double bounds){
         
        super(p, bounds,bounds,new SpriteBlock(0,3*(200+SpriteBlock.SPACING),200,200,
            ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
      }
 
View Full Code Here

  private final TutorialManager manager;
 
  private boolean enabled=false;
 
  public NextStepButton(Point p,TutorialManager manager) {
    super(p, 50, new SpriteBlock(4*(200+SpriteBlock.SPACING),2*(200+SpriteBlock.SPACING),200,200, ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    this.manager = manager;
  }
View Full Code Here

    }
   
    private class NextLevelButton extends CircleButton{
     
      NextLevelButton(Point p, int d) {
        super(p, d/2, new SpriteBlock(200+SpriteBlock.SPACING,3*(200+SpriteBlock.SPACING),200,200,
            ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
       
      }
 
View Full Code Here

     * @param w
     * @param h
     */
    public IDEnteredBoard(Point p) {
      super(p, 450, 150);
      block=new SpriteBlock(0,500+SpriteBlock.SPACING,720,240,MEngine.getAssetManager().getSpriteSheet("images/boards.png"));
      button=new SubmitButton(getPositionAt(PositionType.SOUTH));
      idLabel=new GameLabel(new Point(getX(),getY()), TextAlign.CENTER, TextBaseline.MIDDLE, "", ASBOTXConfigs.Color.BLACK, ASBOTXConfigs.getCGFont(28));
      messageLabel=new GameLabel(new Point(getX(),getBottomY()-40), TextAlign.CENTER, TextBaseline.MIDDLE, "", ASBOTXConfigs.Color.ORANGE, ASBOTXConfigs.getCGBoldFont(12));
    }
View Full Code Here

    }
   
    private class SubmitButton extends BoxButton{
      private boolean enabled=false;
      public SubmitButton(Point p) {
        super(p, 65, 50,new SpriteBlock(910,100+SpriteBlock.SPACING,130,100,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
      }
View Full Code Here

    private SpriteBlock block;
    private static final int V=1;
   
    protected InformationRoll(double w, double h) {
      super(new Point(getGameWidth()/2,getGameHeight()+h/2), w, h);
      this.block=new SpriteBlock((int)w,(int)h, MEngine.getAssetManager().getSpriteSheet("images/information.png"));
    }
View Full Code Here

  private final SpriteBlock icon;
 
  protected CreationDefiner(int requiredFullPower,Point iconCorner){
    this.requiredFullPower = requiredFullPower;
    if(iconCorner==null){
      this.icon=new SpriteBlock(840, 840, ICON_BOUNDS, ICON_BOUNDS, MEngine.getAssetManager().getSpriteSheet("images/definers_icons.png"));
    }else{
      this.icon=new SpriteBlock((int)iconCorner.getX(), (int)iconCorner.getY(), ICON_BOUNDS, ICON_BOUNDS,
          MEngine.getAssetManager().getSpriteSheet("images/definers_icons.png"));
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.mengine.asset.sprite.SpriteBlock

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.