batch replace onButtonPressed(Button...

This commit is contained in:
Peli de Halleux
2016-03-29 21:17:57 -07:00
parent 1f7e0b0f79
commit 850c313c5d
68 changed files with 187 additions and 187 deletions

View File

@ -15,7 +15,7 @@ The code below shows a simple game where the user gets to press the button ``A``
The code below shows a simple game where the user gets to press the button ``A`` as much times as possible in 10 seconds.
```
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
game.addScore(1)
})
game.startCountdown(10000)

View File

@ -15,7 +15,7 @@ The code below shows a simple game where the user gets to press the button ``A``
The code below shows a simple game where the user gets to press the button ``A`` as much times as possible in 10 seconds.
```
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
game.addScore(1)
})
game.startCountdown(10000)

View File

@ -15,7 +15,7 @@ The code below shows a simple game where the user gets to press the button ``A``
The code below shows a simple game where the user gets to press the button ``A`` as much times as possible in 10 seconds.
```
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
game.addScore(1)
})
game.startCountdown(10000)

View File

@ -13,7 +13,7 @@ The game library supports simple single-player time-based games. The general goa
The code below shows a simple game where the user gets to press the button ``A`` as much times as possible in 10 seconds.
```
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
game.addScore(1)
})
game.startCountdown(10000)