Click to See Complete Forum and Search --> : Pacman


Gaccm
11-30-2001, 04:22 AM
Well, i got tired with making games on my TI-83, time to step up to the big legaues. Anyways, I plan on eventually, making a pacman like game, just to test my skills. Now, most of my game knowledge comes from my TI-83, which was in BASIC. So, for my first question: i plan on making the entire game to just run in a gaint while(1){} (this is in C++), is it ok to do that? is there a better method?

Stuka
11-30-2001, 01:15 PM
If you're really going to use C++ (and not just expanded C), wrap that while loop in a try block, and put a catch block below. Then use exceptions thrown in your while loop to exit the program gracefully within your catch block. Other than that, it really depends on the game play and user interaction as to how you'd set up your outermost control structure.