I’ve been working on a game that, in concept, would synchronize the horizontal velocity of a pong ball to music. The ultimate goal is of course to do this in real time, but for a proof of concept I have started developing the idea with an XML file which signifies the beats of a song. Here is what I have so far:

First video: http://www.youtube.com/watch?v=yyaUibyrigg

Second video:
http://www.youtube.com/watch?v=FadV-tHOkqU

This video shows the ball with a locked vertical velocity for the sake of the demonstration. Prior to making this video, I used the record mode that I made. The song plays in the background, and I hit the spacebar on every beat. All the beats that I laid out with this method were then stored into an xml file (format shown @ http://xml.pastebin.com/f1e5cbe33). This video shows the playback of that XML file while the song plays in the background. Every time the ball hits a paddle, the horizontal velocity is adjusted so that it will hit the other paddle at the time when the next beat occurs.

Up to date code can be found here: http://code.google.com/p/beatpong/

I think it’s pretty slick… I hope others do too 🙂 More to come!

Leave a Reply

Your email address will not be published. Required fields are marked *