]> code.delx.au - pong/blobdiff - pong.c
The ball is now a slug.
[pong] / pong.c
diff --git a/pong.c b/pong.c
index 09bf9d4ca1637ab9c7da80d1a7637f2f75a4afd4..4ecaa8a3664e024c3746556efc315ef90cde4e6f 100644 (file)
--- a/pong.c
+++ b/pong.c
@@ -165,9 +165,9 @@ static void gameDisplay(void) {
        glEnd();
 
        // Draw the ball
-       glPointSize(5.0);
-       glBegin(GL_POINTS);
+       glBegin(GL_LINES);
        glVertex2d(ballX, ballY);
+       glVertex2d(ballX - ballVecX, ballY - ballVecY);
        glEnd();
 
        // Write the score