As I was working my way through the Kithgard Dungeon campaign world using only LUA. (free account) I noticed that there were two distinct coding styles:
hero:moveUp()
and
self:moveUp()
Both seemed to work equally well. However the quick lookup for that level would default to using one or the other. So if you were used to typing self:moveUp()
and used autocomplete on a level that was demonstrating hero:moveUp()
it would autocomplete to self:hero:moveUp()
requiring one to then fix their code or manually type all of the code. Or just change to the hero:moveUp()
for the levels that demonstrate that kind of code.
This isn’t so bad, but for the fact that you could end up getting a hero
or a self
level without any source code and not realize it was one or the other, thus forcing you to correct the garbled autocomplete code. This inconsistency just detracts from the game play so I recommend one or the other.
So I ask either for a vote or an executive direction. Which should we use? I can then submit patches for all of the free to play levels from Kithgard Dungeon to keep everything the same
I wonder if it would be possible to grep
the forum and code files to find out how many references exist for each in LUA and then take the dominant used style?