Package com.sertaogames.cactus2d

Examples of com.sertaogames.cactus2d.GameObject



  @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;
    MainLevel.pause();
    for (GameObject go : objetos) {
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();
    for (GameObject go : objetos) {
      go.setPaused(false);
View Full Code Here

TOP

Related Classes of com.sertaogames.cactus2d.GameObject

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.