PDA

View Full Version : need help with a python game dev


tsanoff
April 2nd, 2007, 06:56 AM
Hey guys I am developing a python game and i need some help. The source code is 99.9% finished. Its the 3 jugs problem game, where you have 3 jugs of different sizes (3, 5, 8 ounces). The goal of the game is to pour liquid from cup to cup until you get 4 ounces left into either one of the larger cups. There is a slider that moves and cups can be selected by pressing the space bar when the slider is underneath the cup. The first hit selects the source cup and the second hit selects the target cup. Then the liquid pours from source to target cup. Here is my problem. Everything works fine except one little thing. When liquid is poured into the third cup it automaticly selects it as a source cup for the following pour. I have busted my brain looking over the code to see where this error might be coming from and no luck. The problem doesn't occur for any of the other cups and they have nearly identical code. Can someone please aim me at sakohako or e-mail me at tsanoff@gmail.com for more info and source code. I have the game archived in a rar, but its 32mb and can't put it on the forum. The code is in python using pygame modules. If anyone knows pygame please, oh please help me!!!

once again my sn for aim is sakohako
my e-mail is tsanoff@gmail.com