Tuesday, September 24, 2013

Pong networking: goal routine integrated

After fighting for at least two hours i managed to import in the new pong network the old goal detection routine from pong 2013 lite.
The main issue is always the same: all the detections that need to be shown to both the players needs to be done client side and synchronized.
Now when the ball goes into the net behind the pad a big colored "GOAL" appears in the middle of the screen (like the old version) with a crowd screaming for a second. The score will be increased and we start again as it was in the normal version.
The original game had also in the same routine the control needed to determine when the match is over, when there is the batch ball and when the last ball is played. I didn't import it yet. I will.
Now i spotted a glitch of the ball that bounce on the pad line (rarely) even if the pad ain't there. I need to fix it ... now. 

No comments:

Post a Comment