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

Examples of com.google.gwt.maeglin89273.game.mengine.physics.Point


   
  }
  public static class SimpleStaticLineDefiner extends StaticLineDefiner{

    public SimpleStaticLineDefiner(){
      super(ASBOTXConfigs.CreationPowerComsumption.SIMPLE_STATIC_LINE,new Point(0,ICON_BOUNDS_PLUS_SPACING),ASBOTXConfigs.Color.BLACK);
     
    }
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 class BlueMark extends GeneralComponent implements StepComponent{
 
  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

 
  public static class CementLineDefiner extends StaticLineDefiner{

    public CementLineDefiner(){
      super(ASBOTXConfigs.CreationPowerComsumption.CEMENT_LINE,
      new Point(ICON_BOUNDS_PLUS_SPACING,ICON_BOUNDS_PLUS_SPACING),ASBOTXConfigs.Color.GRAY);
    }
View Full Code Here

   * @see com.google.gwt.maeglin89273.game.mengine.page.Page#onScreen()
   */
  @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

public class StepBoard extends GeneralComponent{
  private final GameLabel titleLabel;
  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

   
    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);
      Point rightButtonPos=new Point(getX()+BUTTONS_SPACING,buttonsY);
     
     
      switch(status){
        case NEW_HIGH_SCORE:
         
          scoreLabels=new GameLabel[]{new GameLabel(new Point(getX(),getY()-40), TextAlign.CENTER, TextBaseline.MIDDLE,
              "New High Score!", ASBOTXConfigs.Color.LIGHT_BLUE,ASBOTXConfigs.Color.DARK_BLUE,0.5f, ASBOTXConfigs.getCGFont(45)),
              new GameLabel(new Point(getX(),getY()+50), TextAlign.CENTER, TextBaseline.MIDDLE,
                  Integer.toString(score),ASBOTXConfigs.Color.LIGHT_YELLOW, ASBOTXConfigs.Color.YELLOW_BORDER,2, ASBOTXConfigs.getCGFont(70))};
          buttons=new GameButton[]{new LevelMenuButton(leftButtonPos,BUTTONS_BOUNDS),
               new ReplayButton(centerButtonPos,BUTTONS_BOUNDS),
               new NextLevelButton(rightButtonPos,BUTTONS_BOUNDS)};
          break;
        case GENERAL:
          scoreLabels=new GameLabel[]{new GameLabel(new Point(getX(),getY()-30), TextAlign.CENTER, TextBaseline.MIDDLE,
              "High Score "+localPlayer.getScoreAt(level), ASBOTXConfigs.Color.LIGHT_BLUE,ASBOTXConfigs.Color.DARK_BLUE,0.5f, ASBOTXConfigs.getCGFont(45)),
                        new GameLabel(new Point(getX(),getY()+50), TextAlign.CENTER, TextBaseline.MIDDLE,
                  "Score "+score, ASBOTXConfigs.Color.GRAY,ASBOTXConfigs.Color.DARK_GRAY,1, ASBOTXConfigs.getCGFont(45))};
          buttons=new GameButton[]{new LevelMenuButton(leftButtonPos,BUTTONS_BOUNDS),
                       new ReplayButton(centerButtonPos,BUTTONS_BOUNDS),
                       new NextLevelButton(rightButtonPos,BUTTONS_BOUNDS)};
          break;
        case LEVEL_FAILED:
          scoreLabels=new GameLabel[]{new GameLabel(new Point(getX(),getY()+20), TextAlign.CENTER, TextBaseline.MIDDLE,
                        "Level Failed!", ASBOTXConfigs.Color.BLACK, ASBOTXConfigs.getCGFont(45))};
          buttons=new GameButton[]{new LevelMenuButton(leftButtonPos,BUTTONS_BOUNDS),
                new ReplayButton(rightButtonPos,BUTTONS_BOUNDS)};
                       
      }
View Full Code Here

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

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

    JSONObject bounds=jsonContext.get("bounds").isObject();
    this.width = bounds.get("width").isNumber().doubleValue();
    this.height = bounds.get("height").isNumber().doubleValue();
   
    JSONObject camera=jsonContext.get("camera").isObject();
    this.viewPoint = new Point(camera.get(X).isNumber().doubleValue(),
                   camera.get(Y).isNumber().doubleValue());
    JSONArray defs;
    int i;
   
    defs=jsonContext.get("areaDefs").isArray();
View Full Code Here

TOP

Related Classes of com.google.gwt.maeglin89273.game.mengine.physics.Point

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.