Hello Defold community I am about to start a large Defold project with my team I want to use Defold for its clean message passing system and small mobile bundles. But none of us have worked in a large Defold project yet only small toys I have made. All that being said I have a few questions about project structure and setup I want to run by you pros.
project lay out. I like to run a project structure that localizes concerns so like this.
├── defold_project
│ ├── player
│ │ ├── player.go
│ │ ├── player.script
│ │ ├── player.lua
│ │ ├── player.test.lua
│ │ ├── art
│ │ │ ├── img1.png
│ │ │ ├── img2.png
│ │ │ ├── img3.png
│ │ │ ├── player.atlas
├── input
│ ├── game.input_binding
└── .gitignore
with this my *.script file would be as you expect with an init, update and such. my *.lua would then contain the everything with the player (doing this to make testing easier) and with this structure I will have a lot of small atlas files instead of few large ones.
So my questions.
- Is it ok to have so many atlas files? What are the down sides if any?
- Is there a better way to structure my code for better testing in Defold?
- Is there a problem with most of my code / game logic being in lua modules over script files?
- Any nuggets of wisdom you have on how best to setup a Defold project for long term success?
- Do you know any large open source Defold games that include things like testing, ci/cd I can look over to take ideas from?