Small Game

by glitch_xan in Living > Video Games

191 Views, 2 Favorites, 0 Comments

Small Game

FZDDBDLKUQYFONR.jpeg

This is a small game I made after getting to know the basics of a microbit.

Supplies

images.jpg
uusbhaub6in.main.jpg

You will need a micro usb cable of any length, a microbit and a way to make and transfer the code.

For making and transfering the code i used a computer and the microbit website to write the code.

Creating the Player

Schermafbeelding 2021-10-15 092753.png

First u make the player. You can use any name for this sprite.

Making an Enemy

Screenshot 2021-10-15 at 09-36-54 Microsoft MakeCode for micro bit.png

Now you can make the enemy, I wanted to let him appear at the right side and go to the right side.

I chose an interval of 200ms but you can change this to any value to change how fast u want the enemy sprite to move.

Make Your Player Move

Screenshot 2021-10-15 at 09-38-15 Microsoft MakeCode for micro bit.png

You can very easily make the player move, I chose to make the sprite go up by one block if u press A and 1 block down if u press B.

Make Your Enemy Dangerous

Screenshot 2021-10-15 at 09-40-23 Microsoft MakeCode for micro bit.png

Here I have written some code so that the player dies when the enemy touches him.

Download and Transfer

images.jpg
uusbhaub6in.main.jpg
Screenshot 2021-10-15 at 09-42-49 Microsoft MakeCode for micro bit.png

Now you insert the cable into your microbit and in your pc. You download the code you wrote and transfer the file to the microbit. As long as the microbit is powered you'll be able to play the game.

Enjoy Your Game

Now you're done and you can enjoy your game.