Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EDIT: Make a game in 10 lines or less.
#21
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.
Reply


Messages In This Thread
EDIT: Make a game in 10 lines or less. - by andy - 03-07-2004, 04:04 PM
EDIT: Make a game in 10 lines or less. - by KiZ - 03-09-2004, 12:30 AM
EDIT: Make a game in 10 lines or less. - by KiZ - 03-09-2004, 12:40 AM
EDIT: Make a game in 10 lines or less. - by PlayGGY - 03-09-2004, 12:44 AM
EDIT: Make a game in 10 lines or less. - by Zack - 03-09-2004, 08:39 AM
EDIT: Make a game in 10 lines or less. - by KiZ - 03-09-2004, 03:19 PM
10 line game... - by jatos - 03-09-2004, 06:10 PM
my 10 liner - by jatos - 03-09-2004, 09:38 PM
EDIT: Make a game in 10 lines or less. - by KiZ - 03-09-2004, 10:52 PM
EDIT: Make a game in 10 lines or less. - by seph - 05-13-2004, 12:58 AM
EDIT: Make a game in 10 lines or less. - by seph - 05-13-2004, 02:48 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)