Long Source Codes

BlitzPlus Forums/BlitzPlus Beginners Area/Long Source Codes

Well, here's what I'm dealing with.
Variable p determines which area you are in.
Every area has its own function, pic1(),pic2(),pic3().
The main loop looks something like this:

While cont=True
	If p=1 Then pic1()
	If p=2 Then pic2()
	If p=3 Then pic3()
	If p=4 Then pic4()
	If p=5 Then pic5()
	If p=6 Then pic6()
        Flip
        Cls
Wend

And within each level functions are the general functions that control the mouse, interface, game elements, etc.

I could probably compact the level info into a data block or array and then combine all the level functions into one, but is this really necessary? I'm progressing well and thoroughly understand my program as is, but if it affects the final product I want to change it.

Hopefully this clarifies a bit... if you need more info maybe the worklog page will be of use.