batch replace onButtonPressed(Button...
This commit is contained in:
@ -13,10 +13,10 @@ At the end of the tutorial, click `keep editing`. Your code should look like thi
|
||||
```
|
||||
initializeGame()
|
||||
playLevel()
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
selectHat()
|
||||
})
|
||||
input.onButtonPressed("B", () => {
|
||||
input.onButtonPressed(Button.B, () => {
|
||||
chooseHat()
|
||||
})
|
||||
```
|
||||
|
@ -46,7 +46,7 @@ Write the code that displays the next letter of the string in "cup select" when
|
||||
<br/>
|
||||
|
||||
```
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
index = index + 1
|
||||
if (index > 2) {
|
||||
index = 0
|
||||
|
Reference in New Issue
Block a user