Hello @Rita_Liu and thank you for considering Defold for your next project!
- You can use the http module to do calls to a backend. This works on all platforms. We also have the LuaSockets library integrated in the engine, but I haven’t worked with sockets myself in an HTML build. It should work, but read the discussions in this thread and try it yourselves.
- It is currently not possible to host the project somewhere else. I don’t know the legal details of the Defold user agreement and what it says about the project hosting we are providing. You could symlink to another folder and use another Git repo for it. Or perhaps Git submodules can be used? When we release our new editor it will be possible to host projects somewhere else entirely.
- You can use collections to structure your applications into logic parts, splash, main menu, game etc and load/unload the different parts as needed. You can split things up more as well of course, and perhaps load/unload certain parts of your game as you need them (levels, popups, in-game menus etc). But you are to some extent correct, once you load a collection you hand off that work to the engine and can’t control how it’s done.