int tileID = tiledMap.getTileId(x, y, 0);
if (tileID == 1) {
result.add(new Bloque(x, y, Bloque.PARED, true));
}
if (tileID == 2) {
result.add(new Puerta(x, y, Bloque.PUERTA, true));
}
if (tiledMap.getLayerProperty(l, "underPlayer", "-1").equals("1") && tiledMap.getTileImage(x, y, l) != null) {
result.add(new Bloque(x, y, Bloque.CAPA1, false, tiledMap.getTileImage(x, y, l)));
}
if (tiledMap.getLayerProperty(l, "underPlayer", "-1").equals("0") && tiledMap.getTileImage(x, y, l) != null) {