}
public void fillFromTile(){
if(tileMap != null){
BlockMap ent;
Controller c;
Element e;
RigidBody r;
for (int xAxis=0;xAxis<tileMap.getWidth(); xAxis++)
{
for (int yAxis=0;yAxis<tileMap.getHeight(); yAxis++)
{
int tileID = tileMap.getTileId(xAxis, yAxis, 0);
if(CONF.debugLevel >= 3)
System.out.println(tileMap.getTileProperty(tileID, "Solid", "0"));
if(tileMap.getTileProperty(tileID, "Solid", "0").equals("1")){
try {
ent = new BlockMap();
e = new Element(ent, tileMap.getVisibleTile(xAxis, yAxis));
ent.setElement(e);
c = new Controller(ent, xAxis*32, yAxis*32);
ent.setController(c);
r = new RigidBody(ent,1, true, true);
ent.setRigidbody(r);
ent.setEntityName("BlockNĀ°"+tileID);
} catch (SlickException ex) {