Micro:bit Dodge Ball Video Game
In order to program multiplayer online game, you shall learn Microbit Radio Block command first.
Dodge Ball Rule
Dodge Ball Multiplayer Video Game
Let’s write a game that can be played by up-to 5 players over 5 radio channels.
- The ball can come from the 4 edges of the LED. Each edge represents one of other 4 players except the local player.
- Each player has a dodge ball. The player can select which target player to send by pressing 4 buttons. Then, the dodge ball will show up in the target player’s LED.
- The player use joystick to move “my fist” to intercept the coming dodge ball. Once the ball is intercepted, it will bounce back to the emerging edge and disappear, then show on the sender’s LED screen.
- There may be multiple dodge balls show up in your LED at same time. Therefore, stay alert and act fast.
First, create dodge ball field. It will randomly pick a radio channel as your host field and allow you to move “my fist”. You host field number will be shown by pressing button A.

Then, add code to send dodge ball to the other players. You only send 1 dodge ball every 2 seconds.

Add code to show coming dodge ball. When your Micro:bit receive a number message (dodge ball) from the other player, the dodge ball will start to move.

Then, implement game logic. If the dodge ball touches one of the LED edges, game over. If you move the “my fist” to catch the ball, you are safe.

Download the Dodge Ball game from here.
Microbit Dodge Ball Competition
Introduction
There is no limit of players. As long as they are in the radio range of Mircobit.
Game Setup
Each player should have a gamepad with Microbit. Download the Dodge Ball game from here. Install it to the Microbit. Turn on the gamepad power and wait for more players to join.
Game Rules
- Every player will be randomly assign to team 1,2,3,4.
- Game conductor send signal to start the game.
- Each player presses button B1 to send the dodge ball.
- Each player moves the joystick to dodge the coming ball.
- Be careful that the player cannot dodge the coming balls for 2 seconds after sending the dodge ball. Send ball wisely.
End of Game
The winner is the team that has a least one player survived.