summaryrefslogtreecommitdiff
path: root/pong.c
diff options
context:
space:
mode:
Diffstat (limited to 'pong.c')
-rw-r--r--pong.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pong.c b/pong.c
index 6ffd452..cf29b5b 100644
--- a/pong.c
+++ b/pong.c
@@ -33,4 +33,5 @@ bool CheckCeilingCollision ( const struct moveable_t m ) {
void Reset ( ball_t * const ball ) {
ball->position = ( point_t ) { SCREEN_WIDTH >> 1, SCREEN_HEIGHT >> 1 };
+ ball->velocity = ( point_t ){ 1, 1 };
}