Engine coding Methods

After looking through several forums, and I’ve noticed how people have a tendancy to use a source file for all their coding and have reference to the _root of that file. I was just curious if a lot of people used this for their main project or they build out an engine in other as files?

I also wonder if anyone has plans for designing a game loop engine(i don’t know the proper name for this but i’ve usuallyheard it referred to as gameLoop() a Void function that updates mostly graphics and variables) or has already created one?

And for those of you that have built one or are building one, what is the best approach for making one? Should you first create a general “world” opr map class and then break down to events and entities or sprites? or do you start with characters and build up to maps?

Ulitimately I would like to create something like this.

You have everything seperated out and it’s object oriented good, and the only things you constantly need checking are the user interface and a “world” status

coded like this
[AS]
gameLoop = function(){
user.interface();
world.status();
}
[/AS]

and the rest is event or user triggered and no need to constantly update or check things

granted there is probably something missing but i mean just as a general shell for a game this should be fine after you initialize everything

post your thoughts and comments

-optixBurn