protected void setupMap(String mapName)
	{
		Logger.log("Loading map: " + mapName);
		map = MapLoader.loadMap(mapName);

		List<Entity> entities = new ArrayList<Entity>(0);

		for (ITileObject tile : map)
		{
			if (tile instanceof RenderMapTile)
				addComponent((RenderMapTile) tile);
			else if (tile instanceof CharacterSpawn)
				setSpawn(tile.getTileX(), tile.getTileY());
			else if (tile instanceof PushableCrate)
				entities.add(entityHandler.createBreakableEntity(TileType.CRATE, tile.getTileX() * 64, tile.getTileY() * 64));
		}

		for (Entity entity : entities)
			addComponent(entity);

		collisionHandler.setMap(map);
	}