In previous chapters, we haven't been very concerned with the high-level structure of our code. We wrote some examples as single HTML files, and we split the FPS and CTF projects into separate files, but for polished games we should be more careful, especially when working with teams. General coding lessons apply:
Keep assets in folders by file type/purpose. For example, at a high level you might have folders such as
sounds. Within the
Avoid putting code that directly...