Fix block display for examples in 'inBackground' (#2018)
This commit is contained in:
parent
f3af5d800e
commit
c3c2545607
@ -25,7 +25,7 @@ changes what is stored there.
|
|||||||
let num = 0
|
let num = 0
|
||||||
control.inBackground(() => {
|
control.inBackground(() => {
|
||||||
while (true) {
|
while (true) {
|
||||||
basic.showNumber(num, 150)
|
basic.showNumber(num)
|
||||||
basic.pause(100)
|
basic.pause(100)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -40,7 +40,7 @@ with a ``forever`` loop.
|
|||||||
```blocks
|
```blocks
|
||||||
let num = 0
|
let num = 0
|
||||||
basic.forever(() => {
|
basic.forever(() => {
|
||||||
basic.showNumber(num, 150)
|
basic.showNumber(num)
|
||||||
})
|
})
|
||||||
input.onButtonPressed(Button.A, () => {
|
input.onButtonPressed(Button.A, () => {
|
||||||
num++;
|
num++;
|
||||||
|
Loading…
Reference in New Issue
Block a user