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.11k stars 160 forks source link

Lesson 23, stacks example, array items doesn't match gems. #406

Closed duianto closed 2 years ago

duianto commented 2 years ago

Issue description:

Lesson 23, stacks example, array items doesn't match gems in the left panel.

To Reproduce Steps to reproduce the bug:

  1. Go to https://gdquest.github.io/learn-gdscript/staging/#course/lesson-23-append-to-arrays/lesson.tres
  2. Scroll down to the heading: Using arrays as stacks
  3. See the first interactive example.

Observed behavior

The left panel shows the following gems, from top to bottom:

But the code in the right panel uses the same name for all three items in the array:

var crates = ["fire gem", "fire gem", "fire gem"]

Expected behavior

The code should probably match the gems in the left panel.

var crates = ["fire gem", "yellow gem", "blue gem"]

Screenshots

msedge_DatlRqXy3I

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

duianto commented 2 years ago

The gems in the left panel seem to change. A green heart gem appeared at the top this time:

msedge_svGDCXg9rh

johnnygossdev commented 2 years ago

Fixed via e0ea530f0d92459ea1faeb84d40e6a082c6c8c8c