GDQuest / learn-gdscript

Learn Godot's GDScript programming language from zero, right in your browser, for free.
https://gdquest.github.io/learn-gdscript/
Other
2.07k stars 153 forks source link

Lesson 14: Practice 1 - should have the variables in the code #473

Closed theMotionblur closed 2 years ago

theMotionblur commented 2 years ago

Issue description: (from: https://gdquest.github.io/learn-gdscript/#course/lesson-14-multiplying/practice-0c7DDizK.tres) It's understood that the lesson focuses on the level up via multiply and linear level progression/addition but I find it a little off putting that the variables aren't defined above the function.

Maybe there should be some sort of convention to explicitly show that this is only a part of the code and the rest is statically defined for the user. Maybe greyed out. If I didn't know the scripting basics already I know I would be confused as to why I don't need to define the variables in this case. Or in my case I actually tried to define the variables first and got the hint that they are already defined, which I would find equally confusing.

NathanLovato commented 2 years ago

They should definitely be there, you're right!