@Override
	public void draw() {
		if (curSpriteName.equals("walking")){
			int f = ((AnimationSprite) curSprite).getFrameCount();
			int delay = ((AnimationSprite) curSprite).frameDelay;
//			System.out.println(f);
			if (f == 0 * delay || f == 9 * delay){
				try {
					Random random = new Random();
					AudioLoader.getAudio("OGG", ResourceLoader.getResourceAsStream("/data/audio/effects/footstep-" + random.nextInt(4) + ".ogg")).playAsSoundEffect(.7f, .3f, false);
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
		curSprite.setRot(rot);
		curSprite.draw();
	}