Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Chapter 13, Ping Pong

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,385
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 8, 2007

A video of one of the examples in my new book on writing games for Windows and the Xbox 360 game console using XNA Game Studio Express.

Category:

Entertainment

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (groundh0g)

  • I mention that in the chapter. Basically just take the current position and previous position, then divide the change in X by the width of the ball, checking for collisions at each step.

    Of course, you could also put an upper limit on the ball so that it never travels further than (paddle width + ball width) pixels in a single frame.

see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Thing is, when the movement gets fast enough, the ball can move right through objects, not noticing it's hit something. How would you get round that?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more