fix sample

This commit is contained in:
Peli de Halleux 2018-12-19 09:19:59 -08:00
parent f4bb37b4bf
commit 4f66baab40

View File

@ -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[] = []