Sunday, October 13, 2013

Collision bug solved

The collision bug that was bothering me in Pong Network has been fixed. As I predicted was just matter of calibrate very well the collision system based on the dimensions of the two sprites (ball and pad). The glitch was also magnified because of an imperfection of the sound system which was repeating (sometimes) the same bouncing sound for the time of the two sprites colliding.
In fact the movement-collision and bouncing is managed stand alone on the device BUT the sound reproduction is managed by the object of the client or else only one device would play correctly the sound. Therefore the same collision routine must be duplicate on the client object in order to play the sound (only once) when the collision is detected: more complicate to explain it than what it is in real.
Anyway this is fixed. I put on hold for few minutes the network collision to start to work on the artwork of the arcade version of Pong. We are choosing avatars, characters and writing down a kind of storyboard.

No comments:

Post a Comment