Skip to main content

Case 04:Little heroes (1)

Purpose

Learn to control the character's lateral movement, jumping, and scene creation.

Materials Requested

1 x ELECFREAKS Retro Makecode Arcade For Education

retro-case-01-01.png

Software

Microsoft makecode

Programming

Set the background color and set the block map.

retro-case-04-01.png

Set the sprite, set the y-axis acceleration of the sprite, and set the y-axis velocity to 0 by moving the sprite with the button.

retro-case-04-03.png

Set the camera to follow the sprite movement and set the sprite jump function.

retro-case-04-04.png

Procedures

Link: https://makecode.com/_EzzHsgdVhecH

You can also download the program directly from the following pages.

You may download it directly below:

Program Download

Please see the documentation for the program download: Program Download Method

Conclusion

You can control the sprite to move laterally and jump in the custom scene by pressing the button.