« Living Art GumDropLEDs | Main | LivingArt Crit 02.22.06 »
February 23, 2006
Networked Game First Assignment
From Gilad's Blog
CatchMeNetworkedGame
We created a 2-player game that is controlled with 4 potentiometers (2 for each player), each controller uses an Xport (with the following code
) to connect to a python script
on the itp server (in the cgi-bin). This script parses the message from the PIC (the two readings from the pots), and writes them to a .txt file (important not to put the .txt file in the cgi-bin folder-> otherwise processing can't open it!). We run a processing app which reads both data files and uses the information from the potentiometers in order to place the two players at the appropriate spot on the screen.
There have been problems with the itp server/timing. Best would be to have our own little server (next time!), but also every time the we send information to the server, to cut off the connection (sending the ascii character '4' - "serout[4]") and then time is not wasted on the server talking back to the PIC chip. It is also extremely wasteful to have the .txt files in between the communication.
Brainstorming
SystemDiagram

Controllers for two players
Posted by min at February 23, 2006 02:17 AM