How to organize large javascript game projects?

I am a flash developer, and I recently studied HTML5 game development using canvas and javascript. I have several books and several textbooks, and I still have not found a decent way to organize files.

In some examples, all the code is in one game.js game, sometimes in several external js files and all links to html script tags one by one (it looks like a mess when you have 10 files or more).

So what is the best way to organize large projects?

+4
source share

Source: https://habr.com/ru/post/1481758/


All Articles