Things to check
English | German | ||
---|---|---|---|
board | Spielfeld | Learn GDScript From Zero | |
In context of a game-board, this is the most accurate transaltion |
|||
function | Funktion | Learn GDScript From Zero |
English | German | ||
---|---|---|---|
board | Spielfeld | Learn GDScript From Zero | |
In context of a game-board, this is the most accurate transaltion |
|||
function | Funktion | Learn GDScript From Zero |
This time, we compare the number of loops to the board's width. We go through the loop until we reach the width of the board.
Note that we move the robot until its position is one less than the board's width because we are counting tiles from [code]0[/code].
A board of [code]3[/code] by [code]3[/code] cells would have cell coordinates going from [code]0[/code] to [code]2[/code] on both the X and Y axes.
Diesmal vergleichen wir die Anzahl der Wiederholungen mit der Breite des Bretts. Wir wiederholen weiter durch, bis wir die Breite des Bretts erreicht haben.
Beachte, dass wir eine weniger als die Brettbreite bewegen, da sich der Roboter bereits in der ersten Zelle befindet.