🎄Merry Christmas🎄Coolest Christmas Gift Received Ever!
🌟All products' price reduced by 15% off
🎁Hot-Selling Items: Buy 10 Get 1 Free

ecode Dodgeball(I)

Hello, this week I am planning to make a dodgeball game in the ecode, please can just check here if you are interested to it!

By doing this, we need to prepare:

Hardware: A computer

Software : ecode(www.ecode.cn)

Prepare a background picture like this:

Dodgeball

Create a role that could move left and right, choose a new sprite and add it to the project.

Click choose one role to check all in roles in ecode.

Dodgeball

You can review by searching with a theme, click one that you like to add it in your project.

Dodgeball

Add the following blocks to make the roles be controlled via the direction keys.

Dodgeball

Adjust the sprite to a proper size.

Dodgeball

Copy the code and set to press the left arrow key and change the face direction as -90, just like this:

Dodgeball

Test your code to make sure it could work, while walking to the left, would it trun over?

Dodgeball

If yes, try changing the directions through the mouse:

Dodgeball

It also works by adding this block in the code:

Dodgeball

We just get it done! Next time I would expand the functions of climbing a ladder and jumping!

If you have any ideas or opinions, please feel free to contact us via [email protected].

Leave a Reply

Frame 422188
Meet ELECFREAKS at BETT 2025!
Frame 422521
Our New Distributor——BERRYBASE
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Frame 422188
Meet ELECFREAKS at BETT 2025!
Frame 422521
Our New Distributor——BERRYBASE
images
How to make a counter with micro:bit?
Monthly Archive