Step 1: Display welcome message
It’s really hard to play flappy bird if the game starts straight away: it works better if you give the user some warning that the game is about to start.
- Add a line to your code that scrolls the text “Get ready…” across the screen:
from microbit import * display.scroll("Get ready...")
If you think the text scrolls too quickly or slowly you can change the speed using an additional parameter to the scroll procedure:
display.scroll(“Get ready…”, delay=200) will scroll the speed twice as fast and display.scroll(“Get ready…”, delay=800) will scroll twice as slowly.
Feel free to change the “Get ready…” message to whatever you like, but don’t forget the double quotation marks or brackets either side.