···3737 if (anim < 7500) anim++;
3838 else anim = 0;
3939 //TODO Add sprinting mechanics eg. a toggle key in the key listener and an if statement here
4040+ boolean sprinting = true;
4141+ if (sprinting) {
4242+ // Do the walk thing twice, therefore doubling the speed
4343+ if (input.up) ya--;
4444+ if (input.down) ya++;
4545+ if (input.left) xa--;
4646+ if (input.right) xa++;
4747+ }
4048 if (input.up) ya--;
4149 if (input.down) ya++;
4250 if (input.left) xa--;