Code design structure

BlitzMax Forums/BlitzMax Beginners Area/Code design structure

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

What is the best practice when designing your code.

I have wrote a little game where things drop from the top and you have to catch them at the bottom. I did not think about adding a game menu when I started writing.

How do you structure your code?

Most games I've seen written in Blitzmax just use while not keyhit(KEY_ESCAPE) around the whole code.

How would I incorporate a game menu with the ability to pause a game, start a new one and exit (using the exit button, not pressing escape).

Anyone know any tutorials on menu creation and code structure.

Thanks in advance.

Mark