Ecode Dodgeball(I)

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 services@elecfreaks.com.