Webcam bouncy ball

May 11th, 2007

For a project, we want to be able to play with ball in a webcam-game. It took me a while to figure out a good algorithm but I managed. It’s not perfect, but good enough for prototyping. It looks like this:

Bouncing ball in Flash with AS3

Of course, you can play too.

6 Responses to “Webcam bouncy ball”

  1. VietPanda Says:

    Hey man!
    Awesome simulation!

    I would also like to make something like this…sorta like the ninja game in eyetoy
    I was just wondering if you could share the source code with me - I promise I’ll give you credit for it!

  2. jw Says:

    Hi Niels,

    I’m trying to get something similar working but your swf is the most accurate I found so far. Do you mind sharing the source code?

    Laters,
    JW

  3. janwillem Says:

    Hello,

    Is the source code of this swf file available? I was looking for something similar but the examples/tutorials on the net aren’t as accurate as yours is.

    regards,
    Jan-Willem

  4. Niels Says:

    Hello Jan-Willem,

    One comment is certainly more than enough, but thank you for your compliment. Due to license agreements, however, I’m sorry to tell you that I cannot share this source code with you.

  5. jan-willem Says:

    It took a few days before i saw my comment so I thought something went wrong. Therefore there are two comments. sorry :)

    Got the problem solved.
    Anyone who feel like learning vectors and gravity with flash check:
    http://www.tonypa.pri.ee/vectors/index.html

  6. Niels Says:

    Hi Jan-Willem,

    I have to approve comments manually (to avoid spam) so it can take a few days for them to appear.

    I’m glad you got it figured out. Is there someplace I can see the result?

    That site you mention is indeed a very interesting one, I’ve studied it too in my research for this application.

Leave a Reply