Player Library
Diff: Player.cpp
- Revision:
- 13:8a52aa715b32
- Parent:
- 12:1324d72d12a6
- Child:
- 15:139ea93f06b8
diff -r 1324d72d12a6 -r 8a52aa715b32 Player.cpp --- a/Player.cpp Thu May 04 08:34:16 2017 +0000 +++ b/Player.cpp Thu May 04 09:53:40 2017 +0000 @@ -25,7 +25,7 @@ void Player::init() { - _speed = 0.05;// default speed + _speed = 0.15;// default speed } @@ -58,7 +58,7 @@ void Player::update(Direction d,float mag) { - _speed = int(mag*5.0f); //Speed changes depending on how much you push the joystick. + _speed = int(mag*7.0f); //Speed changes depending on how much you push the joystick. // North is decrement as origin is at the top-left so decreasing moves up