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

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


    MEngine.addKeyDownHandler(this);
    MEngine.addMouseMoveHandler(this);
  }
  private boolean checkIsUserANewPlayer(CheckLoginResponse result){
    if(result.getStatus()==CheckLoginResponse.Status.NEW_PLAYER){
      root.insertLayer(0, new ComponentLayer(new Glass(game.getWidth(),game.getHeight())));
      root.insertLayer(0,new ComponentLayer(getBoard()));
      game.getLocalPlayer().setID(null);
      blocked=true;
      return true;
    }
    return false;
View Full Code Here


    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
      public void update() {
        creatorPanel.updatePenPosition(camera.ConvertToWorldPosition(MEngine.getMousePosition()));
View Full Code Here

  /**
   *
   */
  protected HasLoginButtonPage(final Point buttonPos,final Point labelPos,final int buttonBounds,final TextAlign labelAlign,final CssColor textColor) {
    game=(ASBOTXGame) getGame();
    root=new GroupLayer();
   
    if(game.getLoginInfo()==null){
      game.getPlayerService().checkLogin(new CheckLoginRequest(ASBOTXConfigs.CLOSE_PAGE_PATH,game.getLocalPlayer().getPlayer()),
          new AsyncCallback<CheckLoginResponse>(){
 
View Full Code Here

         
    });
    worldLayer.addComponentOnLayer(gravityIndicator)
       
       
    rootLayer=new GroupLayer();
   
    GroupLayer tutorialRoot=new GroupLayer();
    tutorialRoot.addComponentOnLayer(manager.getStepBoard());
    tutorialRoot.addComponentOnLayer(manager.getBlueMark(1));
    tutorialRoot.addComponentOnLayer(manager.getTasksList());
    tutorialRoot.addComponentOnLayer(manager.getButton());
   
    rootLayer.addLayer(tutorialRoot);
   
    rootLayer.addComponentOnLayer(creatorPanel);
    rootLayer.addComponentOnLayer(creatorPropertiesBar);
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

      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

   
    //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.physics.Vector

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.