L17: Discrepancy between loop anim in lesson and instant movement in L17.P1

Aperta
#1,459 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
godot
Ambito
content

Direzione di ricerca

The step-by-step animation lives in the lesson text at res://course/lesson-18-for-loops/lesson.bbcode, and the practice code in the report is the move_to_bottom loop that increments cell.y. Read how the lesson decomposes the loop over time and compare it with how the practice runs the loop instantly. Done means a learner cannot mistake the loop for a delayed, step-by-step process, though the maintainers may need to decide whether the fix is in the lesson animation or the explanation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

content

There's an issue in the lessons that decompose the motion over time to show what the loop is doing step by step, but it's not done well. It leads to thinking that a loop does not apply instantly. This user was then understandably expected their loop in the practice to move the robot step by step with visual pauses.

somehow the robot animation just jump right to the end, my solution are checked fine though

Technical information:

  • Location: L17.P1 - Introduction to For Loops > Using a for loop to move to the end of the board
  • File: res://course/lesson-18-for-loops/lesson.bbcode
  • Platform: Web
  • Commit: 42cfa87

Code from the current practice

var board_size = Vector2(5, 5)
var cell = Vector2(2, 0)

func move_to_bottom():
	for i in (board_size.y - 1):
		cell.y = cell.y + 1
Lingua principale
GDScript
Stelle
2.8k
Fork
239
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GDQuest/learn-gdscript

Tutte le issue di GDQuest/learn-gdscript

Issue simili

Altre issue su Content

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.