25 lines
448 B
Markdown
25 lines
448 B
Markdown
# Change Score By
|
|
|
|
Add the amount you say to the score for the game.
|
|
|
|
```sig
|
|
game.addScore(1)
|
|
```
|
|
|
|
### Examples
|
|
|
|
This program is a simple game.
|
|
Press button ``A`` as much as possible.
|
|
At the end of 10 seconds, the program will show your score.
|
|
|
|
```blocks
|
|
input.onButtonPressed(Button.A, () => {
|
|
game.addScore(1)
|
|
})
|
|
game.startCountdown(10000)
|
|
```
|
|
|
|
### See Also
|
|
|
|
[score](/reference/game/score), [start countdown](/reference/game/start-countdown)
|