Wednesday, November 12, 2008

? Pong ?

Answer the following questions concerning the pong code in a comment to this blog.

  1. What is the screen resolution?
  2. How large are the paddles? (length & width)
  3. How many functions are we using?
  4. If dir = 4, is ball_x getting larger or smaller? What about ball_y?
  5. How do you generate a random number between 2 and 4?
  6. Explain why we use a screen buffer.

.

No comments: