03-09-2004, 12:44 AM
Quote:heh was that supposed to be a joke?!?!? lol.
but anyways, you could make the code shorter by changing all the double numbers.
ie change (pX - 1 - 23) to (pX - 24)
PlayGGY Wrote:Here:
Code:7 : IF ((bX >= pX - 1 - 23) AND (bX <= (pX + 6 - 23)) AND (bY = 63 - 2)) OR (bY = 1 - 2) THEN bS = bS + -((bS AND 2) - 1) * 2
Yeah, I could, but that would make ever going back and changing where the ball starts, or how long the paddle is, or where the game is centered in the screen, etc. impossible,
I will go ahead and do that, but I'll keep the original code so I could more easily change that stuff. I'll post it in a few minutes.
EDIT: Yes, I was joking about it being good code... it really is the nastiest code I have ever seen.