Masher Cnaipe

This week we built an arcade style button mashing game

It’s a two player game. The idea is to get the LED back to your side of the screen

We start with drawing the LED in the centre of the MIcrobit using the X and Y coordinates

We then coded button A to move the LED to the left and button B to move the LED to the right

A message then shows up for the winner

Have a look at the full code below and test it out in the simulator

Previous
Previous

Fraction converter

Next
Next

Ealaín Dhigiteach