public void loadSprite(String ref) {
		BufferedReader reader;
		
		try {
	    	reader = new BufferedReader(new FileReader(System.getProperty("resources") + "/database/sprites"));
	
	    	String line;
	    	while((line = reader.readLine()) != null) {
	    		final String[] temp = line.split(";");
	    		
	    		if(temp[0].matches(ref)) {
	    			this.maxDir = Integer.parseInt(temp[1]);
	    			this.maxFrame = Integer.parseInt(temp[2]);
	    		}
	    	}
		} catch (FileNotFoundException e) {
	    	System.out.println("The sprite database has been misplaced!");
	    	e.printStackTrace();
	    } catch (IOException e) {
	    	System.out.println("Sprite database failed to load!");
	    	e.printStackTrace();
	    }
	}