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

Examples of com.google.gwt.maeglin89273.game.mengine.timer.TimerTask


    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

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

TOP

Related Classes of com.google.gwt.maeglin89273.game.mengine.timer.TimerTask

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.