Skip to content

A multi player micro:bit game - all start together and see who can avoid the rocks for the longest!

License

Notifications You must be signed in to change notification settings

bigeagleowl/Mind-the-Rocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Mind-the-Rocks!

This is a multiplayer game for the BBC micro:bit where you have to avoid the falling rocks. The player who avoids the rocks for the longest wins - simple eh!

How do I Play?

When the game starts, you will see the spinning clock finger on the display. When this stops you are off and running, and the rocks will start dropping from the top of the screen. You are the pixel in the middle of the bottom row. You have to avoid the falling rocks by using the 2 microbit buttons. Button A (on left) moves you to the left and button B (on right) moves you to the right. (Well it would not make sense if it was the other way round.) If a rock hits you, it is game over. The game them restarts - what fun! Oh yes, the rocks fall faster and faster!

I Want to Play with My Friends

  1. Check everyone has Mind the Rocks on their microbit.

We Now Need to Register All the Players Who Want to Join In

  1. Get everyone to reset their microbits using the reset button (which is the button on the opposite side to the LEDs).  
  2. When you see the spinning clock finger, press and hold the button A (on left). When it sees others doing the same with their microbits, it lights a LED for each player who joins. Wait till your microbit displays the correct number of players.
  3. When all have joined let go of button A. It will tell you which player number you are, and then it will start the game :-)

Now you Play!

  1. When a rock hits you you will see the skull image, and your microbit will wait till all players have finished.
  2. The microbit will display the number of the player who won. Here's hoping that is you!
  3. It automatically restarts the game so that you can all have more fun!

Where Did the Inspiration Come From?

I attended an Oxford Codebar (their twitter) session on Python programming for microbits where I was demoing the A Shaky Start Talk Timer. There, one of the cool Python Mentors was coding up a block drop type game for the microbit. If that was you I would love to credit you here. This got me thinking that I could write a multi-player version so here it is :-)

Teachers & Coding Mentors

You are very welcome to use this to help make coding fun - in fact that is the whole point. If you have an idea for an improvement, just add an issue describing your suggestion :-)

Tech Stack

This is written in MicroPython.

How to Install

Here is how to compile and copy a MicroPython script (in this case mindtherocksformicrobit.py) or hex file (grab from the latest release) file to your microbit :-)

Trivia

I coded up the very first version of the game whilst on holiday in the Northumberland National Park. When looking up from the screen I could see the wonderful hills of the upper Coquetdale valley.