Friday, December 16, 2005

VBA is teh suxx0rz

Do you realize how hard it is to make a pong game in VBA? No global variables, no loops, garr!! You have to initialize every variable with every action, which means that nothing can change from loop to loop. I can get a paddle to move and a ball to collide with a wall, but it won't change direction because every loop it reinitializes itself to the original value. I think any game that requires rendering is out. I'll have to get more creative, or stick with tic-tac-toe.

1 Comments:

Blogger Sam said...

Yikes. I agree that VBA is a pain but you _can_ have globals, and use functions to pass variables around as needed. I also have it on good authority that it is possible to write pong in VBA. Keep at it!

http://www.jess2.net/code/xlpong/
(not written by me)

6:25 PM  

Post a Comment

<< Home