James Heavey
/
EL17JH
FINAL VERSION
Diff: Ball/Ball.cpp
- Revision:
- 8:1ab6d90c4d60
- Parent:
- 0:7d4d2023ed9c
- Child:
- 40:ac53905346fb
--- a/Ball/Ball.cpp Sun Apr 21 12:45:11 2019 +0000 +++ b/Ball/Ball.cpp Sun Apr 21 19:40:05 2019 +0000 @@ -25,14 +25,14 @@ _velocity.x = speed; _velocity.y = speed; } else if (direction == 1) { - _velocity.x = speed; - _velocity.y = -speed; + _velocity.x = -speed; + _velocity.y = speed; } else if (direction == 2) { _velocity.x = speed; _velocity.y = speed; } else { _velocity.x = -speed; - _velocity.y = -speed; + _velocity.y = speed; } }