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

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


   * @see com.google.gwt.maeglin89273.game.mengine.component.GeneralComponent#update()
   */
  @Override
  public void update() {
   
    Physical dc;
    for(int i=contentCreations.size()-1;i>=0;i--){
      dc=contentCreations.get(i);
      if(dc.isDestroyed()){
        contentCreations.remove(i);
      }else{
        dc.getBody().applyForce(forceVec, dc.getBody().getWorldCenter());
      }
    }
  }
View Full Code Here


    button=new WelcomeButton(new Point(25,25),50);
    menu=new WorldMenu(new Point(getGameWidth()/2,getGameHeight()/2),game.getLocalPlayer().getMenuIndex());
   
    root.addComponentOnLayer(button);
    root.addComponentOnLayer(menu);
    root.addLayer(new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/blue_bg.png"), 720, 540));
  }
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

  /* (non-Javadoc)
   * @see com.google.gwt.maeglin89273.game.mengine.page.Page#onScreen()
   */
  @Override
  public void onScreen() {
    button=new WelcomeButton(new Point(25,25),50);
    menu=new WorldMenu(new Point(getGameWidth()/2,getGameHeight()/2),game.getLocalPlayer().getMenuIndex());
   
    root.addComponentOnLayer(button);
    root.addComponentOnLayer(menu);
    root.addLayer(new ImageLayer(MEngine.getAssetManager().getSpriteSheet("images/blue_bg.png"), 720, 540));
  }
View Full Code Here

    private RollerControlButton[] buttons=new RollerControlButton[2];
    private ButtonsRoller roller;
    protected WorldMenu(Point p,int index) {
      super(p, getGameWidth(),250);
      roller=new ButtonsRoller(getPosition(),getWidth(),getHeight(),index);
      buttons[0]=new RollerControlButton(new Point(getLeftX()+30,getY()),roller,true);
      buttons[1]=new RollerControlButton(new Point(getRightX()-30,getY()),roller,false);
    }
View Full Code Here

 
 
  public static class ArrowAreaDefiner extends CircleKindAreaDefiner{
    private final SpriteBlock block=new SpriteBlock(0,0,250,250,MEngine.getAssetManager().getSpriteSheet("images/areas.png"));
    public ArrowAreaDefiner() {
      super(ASBOTXConfigs.CreationPowerComsumption.ARROW_AREA,new Point(0,0),60,20);
    }
View Full Code Here

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

  }
  public static class TriangleAreaDefiner extends TriangleKindAreaDefiner{

    public TriangleAreaDefiner() {
       
      super(ASBOTXConfigs.CreationPowerComsumption.TRIANGLE_AREA, new Point(2*ICON_BOUNDS_PLUS_SPACING,0));
     
    }
 
View Full Code Here

 
  /**
   *
   */
  public LeaderboardPage() {
    super(new Point(getGameWidth()-50,getGameHeight()-50),new Point(3,108),100,
    TextAlign.LEFT,ASBOTXConfigs.Color.BORDER_DARK_GRAY);
  }
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.