Computer Science Canada [Q-Basic] Pong Game |
Author: | Weapon X [ Mon May 08, 2006 4:40 pm ] | ||
Post subject: | [Q-Basic] Pong Game | ||
hey all, i have just started learning Qbaisc and since i already know vb i can easily program in qbasic. so now i made a pong game in qbasic but the ball and the 2 paddles keep flikering, if anyone can help me stop the fliker that would be awesome. thanx
|
Author: | Weapon X [ Sun May 14, 2006 12:16 am ] |
Post subject: | aww :( |
...anyone? |
Author: | [Gandalf] [ Sun May 14, 2006 12:38 am ] | ||
Post subject: | |||
Sure, seeing as how I first got into programming using QBASIC and some other BASIC variants... It's been a while since I've done much in BASIC, but one improvement I can suggest is to make your code more dynamic. If you ever decided to improve it it would become difficult to keep track of all the co-ordinate values, which you seem to have hardcoded a lot of, ie:
The game itself is functional, though you could have the score be outputted. Instead of learning BASIC now, you could choose a more modern and interesting language like Ruby to learn, though ultimately it's up to you. I'm sure you would get a larger response from the compsci.ca community as well. |