@Deprecated
	public static void loadLevel(String title, GameContainer gc) throws SlickException {

		nodes = new ArrayList<Node>();
		wires = new ArrayList<Wire>();
		
		Scanner scan = new Scanner(Level.class.getClassLoader().getResourceAsStream("levels.dat"));
		// find header for level
		String next;
		do {
			next = scan.next();
		} while (!next.equalsIgnoreCase(title));

		// find "nodes" header
		scan.next();

		// parse nodes
		while (scan.hasNextInt()) {
			if (scan.nextInt() != nodes.size()) {
				scan.close();
				throw new IllegalArgumentException();
			}
			nodes.add(Node.createNode(scan.nextFloat(), scan.nextFloat(), X_SIZE, Y_SIZE, gc));

		}

		System.out.println(gc.getWidth() + " " + gc.getHeight());

		for (Node node : nodes)
			System.out.println(node.getCenterX() + " " + node.getCenterY());

		// skip "connections" header
		scan.next();

		while (scan.hasNextInt()) {
			// read in values from next line
			String[] values = scan.nextLine().split(" ");

			// create wires from values
			for (int i = 1; i < values.length; i++)
				wires.add(new Wire(nodes.get(Integer.parseInt(values[0])), nodes.get(Integer.parseInt(values[i]))));
		}

		// close scan
		scan.close();
	}