Examples of SpriteBlock


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

    private ButtonsRoller roller;
    private boolean left;
    private int rollingStep=0;
    private final int ROLLING_FULL_STEP=24;
    public RollerControlButton(Point p,ButtonsRoller roller,boolean left) {
      super(p, 25,new SpriteBlock((left?5:4)*(200+SpriteBlock.SPACING),2*(200+SpriteBlock.SPACING),200,200, ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
      this.left=left;
      this.roller=roller;
    }
View Full Code Here

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

    }
   
  }
  private abstract class BigButton extends BoxButton{
    public BigButton(double bounds,int x) {
      super(new Point(0,0), bounds, bounds, new SpriteBlock(x,0,250,250,MEngine.getAssetManager().getSpriteSheet("images/big_buttons.png")));
    }
View Full Code Here

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

    connectionLock=false;
  }
  private class RefreshButton extends CircleButton{
   
    public RefreshButton(Point p, double r) {
      super(p, r, new SpriteBlock(2*(200+SpriteBlock.SPACING),
          3*(200+SpriteBlock.SPACING),200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    }
 
View Full Code Here

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

    private static final String DESCRIPTION="Store your achievements on the cloud.";
    private GameLabel label;
    private boolean enabled=true;
   
    public LoginButtonAndIDDisplay(Point buttonPos,Point labelPos,int bounds,TextAlign align,CssColor labelColor) {
      super(buttonPos, bounds,bounds,new SpriteBlock(3*(200+SpriteBlock.SPACING),
          chooseSpriteBlockY(ASBOTXConfigs.Utility.switchStatus(game.getLoginInfo().getStatus())),
          200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
     
      if(game.getLoginInfo().isConnectionSuccess()){
        this.label=new GameLabel(labelPos,align, TextBaseline.MIDDLE,
View Full Code Here

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

* @author Maeglin Liao
*
*/
public class BackButton extends CircleButton{
  public BackButton(Point p,double r) {
    super(p,r, new SpriteBlock(5*(200+SpriteBlock.SPACING),2*(200+SpriteBlock.SPACING),200,200, ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
  }
View Full Code Here

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

   * @param w
   * @param h
   * @param block
   */
  public WelcomeButton(Point p,double bounds) {
    super(p,bounds,bounds, new SpriteBlock(5*(200+SpriteBlock.SPACING),0,200,200,ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    // TODO Auto-generated constructor stub
  }
View Full Code Here

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

  protected final CreationDefiner[] definers;
  protected int index=0;
  protected boolean pressed;
  protected final Point unPressedBlockPos;
  protected CreativeKey(Point p, double w, double h,Point unPressedBlockPos,CreationDefiner[] definers) {
    super(p, w, h,new SpriteBlock((int)unPressedBlockPos.getX(),(int)unPressedBlockPos.getY(),200,200,
        MEngine.getAssetManager().getSpriteSheet("images/buttons.png")));
    this.unPressedBlockPos = unPressedBlockPos;
   
    this.definers = definers;
   
View Full Code Here

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

  }
  @Override
  public void draw(Context2d context){
    super.draw(context);
    if(pressed){
      SpriteBlock sb=getDefiner().getDefinerIcon();
      context.drawImage(sb.getSheetImage(), sb.getX(), sb.getY(), sb.getWidth(), sb.getHeight(),getLeftX(),getTopY(), getWidth(), getHeight());
    }
  }
View Full Code Here

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

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

  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
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.