Smoother mobile player movement / Cleanup

This commit is contained in:
Anuken
2020-08-20 15:56:40 -04:00
parent 562c41c288
commit dac2264ac7
10 changed files with 12 additions and 38 deletions

View File

@@ -863,6 +863,7 @@ public class MobileInput extends InputHandler implements GestureListener{
if(player.within(targetPos, attractDst)){
movement.setZero();
unit.vel.approachDelta(Vec2.ZERO, type.speed * type.accel / 2f);
}
float expansion = 3f;