public Tile(int _x, int _y, String _URL, int backID, int _maxX, int _maxY)
	{
		backgroundTileID=backID;
		URL = _URL;
		imageIcon = new ImageIcon(this.getClass().getResource("resources/Editor/textures/environment/tiles/"+URL));
		//imageIcon = new ImageIcon(this.getClass().getResource("resources/textures/environment/tiles/"+URL));
		image = imageIcon.getImage();
		width=imageIcon.getIconWidth();
		height=imageIcon.getIconHeight();
		String temp = _URL.replace("tile_","");
		String temp2 = temp.replace(".png","");
		ID = Integer.parseInt(temp2);
		if(ID==9 || ID == 10){overlayable=true;}
		if(ID == 11){fan=true;}
		x=origX=_x;
		y=origY=_y;
		maxX = _maxX;
		maxY = _maxY;
		
		if(maxX>1280-32){maxX=1280-32;}
		if(maxY>720-32){maxY=720-32;}
		selectable=true;
	}