Modular Programming with LÖVE
The dice game in Chapter 2 was created in one file. Small programs, usually called scripts, are often only one file, but the larger an application gets, the less convenient it is to write it all in one monolithic file. After all, most large applications aren’t written by just one developer but a whole team, and only one person can work on a file at a time. Game engines are pieces in a modular system, since the engine is useless to users without a game. Additionally, if you keep your code modular, you might be able to reuse a file from one project in the next project.