[READ-ONLY] Mirror of https://github.com/jackmawer/ProjectRain.
0

Configure Feed

Select the types of activity you want to include in your feed.

Add basic sprinting mechanics ready for implementation

Jack Mawer (Sep 17, 2014, 6:05 PM +0100) 2def2eb3 37928462

+8
bin/com/mawersoft/projrain/entity/mob/Player.class

This is a binary file and will not be displayed.

+8
src/com/mawersoft/projrain/entity/mob/Player.java
··· 37 37 if (anim < 7500) anim++; 38 38 else anim = 0; 39 39 //TODO Add sprinting mechanics eg. a toggle key in the key listener and an if statement here 40 + boolean sprinting = true; 41 + if (sprinting) { 42 + // Do the walk thing twice, therefore doubling the speed 43 + if (input.up) ya--; 44 + if (input.down) ya++; 45 + if (input.left) xa--; 46 + if (input.right) xa++; 47 + } 40 48 if (input.up) ya--; 41 49 if (input.down) ya++; 42 50 if (input.left) xa--;