Hi there,
I was looking into LDoc or LuaDoc to document my code. I saw from some examples (I have a clickable script that is pretty awesome to set my standards) that people already use some of these standards for documentation.
Since the boilerplate code for all game object scripts comes with predefined functions and a useful reference to instances thanks to self, most of my functions contain self as a parameter, and I will generally define some variables for self in the init function, i.e
function my_function(self)
self.myVar = nil
end
I’m not sure what’s the best way to document these instance variables.
btw, can I change the declaration of these functions to be local? I haven’t really tested/understood this.
Also, for lua best practices, if someone has good links, I am developing a project with a few friends and most of us are not experts in lua. I’ve been playing with defold for a couple of months now, but still I feel like a noob.
thanks