Exemplo n.º 1
0
 // input events
 public void moveHeroTo(Vector2 destination) {
   Tile t = world.getLevel().getTile((int) destination.x, (int) destination.y);
   if (t == null || !t.getType().equals(Tile.Type.COLLIDABLE)) {
     hero.setDestination(destination);
   }
 }