예제 #1
0
  public void respawn() {
    this.health = maxHealth;
    velocity.set(0F, 0F);
    setPosition(spawnPoint.cpy());

    reset = false;
  }
예제 #2
0
 public void setCheckPoint(Vector2 point) {
   this.spawnPoint = point.cpy();
   this.spawnPoint.add(0.025F, 0);
 }