I do a very similar thing ..
I have a file called globals.dba and in there are all my object offset numbers, counters, limits, ingame options etc ..
global _maxParticles as integer : _maxParticles = 20
global dim players(4) as TPlayer
for i = 1 to 4
initPlayer(i)
next i
At the very start of my main file (the first one created) I just have a set of gosubs. I too prefer the look of functions to gosubs, but I think gosubs suit global definitions better...
gosub setupTypes
gosub setupGlobals
gosub setupLevel
gosub setupPlayer
gosub setupScreen
open log
do
`-- blah
sync
loop
Hope this helps
Can I ask you a Question?
What is it?
It's an interrogative form of sentence, used to test knowledge. But that's not important right now.