Previous page…
Step 1: Tilt right along X axisIn this step, you’ll…
- Make the xCoord variable decrease when the Microbit tilts left
Decrease the xCoord when a left tilt is detected
Debug the tilt behavior using showNumber
Up next…
Instead of showing a number, let’s draw our mine sweeper on the map according to the xCoord
Step 3: Move mine sweeper using xCoord