I've been developing games in Delphi for a few years now, and I've really enjoyed that experience. However, I find that as my projects grow bigger, my code is becoming more and more unwieldy. In fact, I've quite a few recent projects because of the clutter that my code was becoming, and was just too difficult to maintain.

I keep all of my code in one file. I realize that this is bad practice, but I was taught Delphi in that sense, and I'm having trouble adjusting to making a multiple-file project with Delphi that is properly organized. Arg.

What I'm looking for is some advice regarding code structure. What's the best way to layout your project in files, and classes and procedures, etc? Any tutorials located on the matter would be appreciated as well.

Thanks!