I’m writing a book! https://www.bookofdefold.com/
I will post some useful things I learn here as I better learn to be productive with Defold - should have started sooner. Others are welcome to post too and share in the learning! Some things may be obvious to others but that’s okay to share small tips too! May be handy as a refresher of useful things to know for people to remember down the road too. Most of these tips I’m learning from further studying the tool, reading documentation, and learning from the Defold team.
You can edit some files directly in an internal editor that by default are edited with the Project Editor.
For example, with the game.project
Now next time you click to open the game.project file it will open in internal editor, or whatever you set. Set back to Project Editor for it to act like default.
If you want to change the clear color quickly you can do so by editing the game.project file with any text editor.
Just add the text below for a white clear.
[render]
clear_color_red = 1
clear_color_green = 1
clear_color_blue = 1
You can also dynamically change the clear color at any time
msg.post("@render:", "clear_color", { color = vmath.vector4(0.2, 0.2, 0.2, 1.0) } )
Double clicking (or single clicking if you have that enabled?) any area in of a tab’s titlebar area is a shortcut to make that tab take up the full view of the editor.
Of course the buttons on the right of each title bar are useful too.
I’d like to hear more from Defold team of useful tips that may not be documented or well known yet. There are a ton in the videos that have been published by the team but not as easily accessible as text, but from now on I’ll compile here.