Quote: "My biggest problem right now is code layout, and keeping everything neat and tidy."
Try tutorial 2 here:
http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10
Quote: "I am trying to understand using multiple files for one program."
Doing this isn't absolutely necessary - it just keeps the total size of the code you have to scroll through to find something that much smaller - quite useful if it reaches an unmanageable size.
Depending on what IDE you are using, locating something in one of the external files
can be a little harder - as opposed to having everything in a single file.
The idea behind it is that if you find yourself writing the same chunks of code over and over again for your games - like for example keyboard, mouse or joystick routines - you can write them once and put them as functions in separate dba files.
If you #Include the external .dba files you need in your main program, the functions in them will be usable just as if they were actually in the main program.
This is because when your program is run, everything gets lumped together (linked) and passed to the compiler as a single dba file anyway.
TDK