Jon Colverson
jjc1138.net
Jon Colverson
@jjc1138.net
Game developer (AAA by day, indie by night)
e.g. Here I'm stopping an animation player before playing an animation. In 6 months I won't remember why I did that, so I added a comment for future-me:
December 19, 2024 at 11:49 PM
A good rule of thumb for commenting is to comment /why/ the code is doing something rather than /what/ it's doing. And you only need to do that when the code is doing something non-obvious.
December 19, 2024 at 11:49 PM
The comments on the variables are A+. You won't need the comments like the ones in the functions when you get more comfortable with coding. They're essentially just translating the GDScript into English, and you won't need that anymore when you're fluent reading GDScript 💪
December 19, 2024 at 11:49 PM
🙌
December 14, 2024 at 1:01 AM