This is a good tutorial to learn how the game engine whorks

http://forum.dronprogs.org/files_for.../books/GEA.pdf