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 20, 2nd exercise expects 4 sizes, but initial code only has 3 sizes #385

Closed duianto closed 2 years ago

duianto commented 2 years ago

Describe the bug

Lesson 20, 2nd exercise: Back To The Drawing Board https://gdquest.github.io/learn-gdscript/staging/#course/lesson-20-looping-over-arrays/practice-clsFcSrG.tres

The Goal states that we should "draw every rectangle in the rectangle_sizes array". But when attempting to do that. It says:

ERROR We expected 4 polygons, but you drew 3 instead

The rectangle_sizes variable, in the start code, only has 3 sizes:

var rectangle_sizes = [Vector2(200, 120), Vector2(140, 80), Vector2(80, 140)]

The solution has 4 sizes:

var rectangle_sizes = [Vector2(200, 120), Vector2(140, 80), Vector2(80, 140), Vector2(200, 140)]

To Reproduce Steps to reproduce the bug:

  1. Go to https://gdquest.github.io/learn-gdscript/staging/#course/lesson-20-looping-over-arrays/practice-clsFcSrG.tres
  2. See that the initial code only has 3 sizes in the rectangle_sizes variable
  3. Click on the Solution button
  4. See that the solution code has 4 sizes in the rectangle_sizes variable

Expected behavior

The initial code should have 4 sizes.

Information about your device (please complete the following information):

razcore-rad commented 2 years ago

close via 6acd87a