"It’s Here! The BFCM Sale of the Year – Grab Your Favorites!"

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

images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
images
Children’s Programming Education is the Future Trend
images
Technical verification! Nezha series products can complete WRO competition tasks
images
Let's take part in the Ceremony of the New Factory of ELECFREAKS together!
images
Bluetooth Bee(HC-05 and HC-06) User Guide
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Monthly Archive