Package com.sertaogames.cactus2d

Examples of com.sertaogames.cactus2d.GameObject.find()


  @Override
  public void init() {
    objetos = gameObject.findAll("Objeto");
    GameObject gameObject = this.gameObject.find("Time");
    timeLabel = gameObject.getComponent(LabelComponent.class);
    gameObject = gameObject.find("Points");
    pointsLabel = gameObject.getComponent(LabelComponent.class);
    parent = this.parent;
  }
 
 
View Full Code Here


    }
  }

  public static void pause() {
    GameObject game = parent.find("Gui");
    game = game.find("Pause");
    if(game != null) {
      game.setActive(false);
    }
    nextState = state;
    state = GameState.PAUSE;
View Full Code Here

  public static void unPause() {
    if(GameControllerComponent.state == GameState.PAUSE){
      state = nextState;
    }
    GameObject game = parent.find("Gui");
    game = game.find("Pause");
    if(GameControllerComponent.state == GameState.PLAYING && game != null) {
      game.setActive(true);
    }

    MainLevel.unPause();
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.