public void loadAnimFile(String path) {
		this.animPath = path;
		animIndex = 1;
		fps = 0;
		frameCount = 0;
		File f = new File(path);
		try (Scanner scan = new Scanner(f)) {
			fps = scan.nextInt();
			scan.nextLine();
			synchronized (this) {
				while (scan.hasNextLine()) {
					String name = scan.next();
					List<Integer> tiles = new ArrayList<Integer>();
					if (animMap.size() == 0) {
						currentAnim = name;
					}
					while (scan.hasNextInt()) {
						tiles.add(scan.nextInt());
					}
					animMap.put(name, tiles);
				}
			}
		} catch (FileNotFoundException e) {
			JixelGame.getConsole().printErr("Could not find anim file at: " + f.getPath(), e);
		} catch (Exception e) {
			JixelGame.getConsole().printErr("Failed to read anim file at: " + f.getPath(), e);
		}
	}