fix sample
This commit is contained in:
parent
f4bb37b4bf
commit
4f66baab40
@ -90,7 +90,8 @@ input.onButtonPressed(Button.B, () => {
|
||||
|
||||
## Step 4: Make obstacles move
|
||||
|
||||
Access each obstacle using a loop (_iterate_ over the `obstacles` array) and decrease the `obstacle` `X` coordinate by 1.
|
||||
Access each obstacle using a ``||for element||`` loop (_iterate_ over the `obstacles` array) and decrease the `obstacle` `X` coordinate by 1.
|
||||
Right click on the ``||value||`` and rename it to ``||obstacle||``.
|
||||
|
||||
```blocks
|
||||
let obstacles: game.LedSprite[] = []
|
||||
|
Loading…
Reference in New Issue
Block a user