GDQuest / GDQuest/learn-gdscript
20. Looping over arrays - Back to the Drawing Board; unfriendly leap in logic
- Dominant language
- GDScript
- Stars
- 2.8k
- Forks
- 235
- PR merge metrics
- No merged PRs in 30d
Description
The Practice asks us to use a for loop to draw 4 rectangles using the pre-defined array. The practice seems impossible to complete unless the x and y values (sub components) are referenced separately, as in the suggested solution;

The first hint for this practice suggests as much (although the wording could perhaps be clearer what it was suggesting, given it was a new application of knowledge)

The problem is that, the way it is worded, it suggests this is because we are referencing Vector2 values but the previous Practice (20. Looping over arrays - Move Robot Along Path) ALSO had us use a for loop referencing Vector2 values in an array but we did NOT need to reference x and y values (sub components) separately.

As far as I can tell, there is no explanation as to why these two functions need to be treated differently. I assume it's because of the way the that draw_rectangle() and move_to() are written but since we can't actually SEE those, it seems to be teaching that sometimes you need to and sometimes you don't and it's just sort of a mystery as to which will work.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.