pxt-microbit
Version:
micro:bit target for Microsoft MakeCode (PXT)
32 lines (19 loc) • 778 B
Markdown
create an answering machine on the @boardname@
Game Library
* [activity](/lessons/game-of-chance/activity)
* [challenges](/lessons/game-of-chance/challenges)
Learn how to creating a message with a **game over** to write your message. We will be learning how to create a message using show string and on button pressed.
```cards
game.gameOver()
basic.showString("Hello!")
input.onButtonPressed(Button.A, () => {})
```
* learn how to use the game library
* learn how to show a string on the LED screen one character at a time
* learn how to use to register an event handler that will execute whenever an input button is pressed