learn-gdscript icon indicating copy to clipboard operation
learn-gdscript copied to clipboard

Lesson 21 - Vector2 Math

Open nicodalfonso opened this issue 8 months ago • 1 comments

Issue description: Consider explaining Vector2 math.

This lesson and the following practice rely on Vector2 multiplication and division, which might not be intuitive to newbie programmers, or those who have never worked with vectors before (especially since something like cell_size / 2 appears to mix types).

A few quick sentences would likely clear things up for beginners.

If you'd like, I'm happy to create a small PR.

nicodalfonso avatar May 16 '25 07:05 nicodalfonso

I agree with you — this is a terrible example. I have over 10 years of programming experience, and I felt very frustrated when working on this problem, let alone a beginner. It was only later that I figured out what this problem was missing.

Here are some suggestions:

  1. Explain the meaning of Vector2.

  2. Rename cell_size to cell_width.

  3. Explain what “cell” means. In this problem, “cell” seems to refer to a specific position in a one-dimensional grid array, but the problem statement never mentions it.

  4. This is actually a one-dimensional array cell, but the diagram on the right shows a two-dimensional array cell, which is very misleading. Therefore, the diagram on the right should be changed to depict a one-dimensional array cell.

chunpaiyang avatar Aug 14 '25 22:08 chunpaiyang