Multiplayer Pong over TCP/IP

Multiplayer Pong over TCP/IP

For our Interface Cultures Class Thomas Czernik, Matthias Frick, Daniela Dobler and I programmed a Multiplayer Pong game. We wrote a Server in Ruby which can accept connections from two clients, which are written in Flash. These clients track a certain user defined color from a webcam image, so the player can move his bar using a green pen for example. The Server communicates with the Clients over TCP/IP using keywords and numbers like POS;12;234;321;213;-3;4; to send positions of the two bars, the ball and the direction of the ball.

You can download the Source here. Please consider that this code is only an experiment. So there are a lot of issues and some bugs left.

YouTube Preview Image

Multipoing_3
We playing the game

See also: Jop Wielens Color Tracking

About the Author

Studying MultimediaTechnology in Salzburg, Austria