Shot the Bull's-eye in ecode (I)

Playing games is always happy. Have you ever thought of making one yourself? This time we will use ecode to make a bullseye game, share it with your friends and family, and invite them to play the game you made by yourself.
Game effect demonstration:
Let's start by creating a crosshair that moves on the screen.
First open the ecode website (www.ecode.cn) and create a new project. In the newly created project, you should first preset your background and crosshair wizard.
When the game starts, broadcast a message to launch “New arrow”.
After receiving this message, set the position and size of the crosshair.
Click the green flag to test your game. You should see the crosshair gets smaller and moves to the lower left corner of the stage.
Add the following code to your arrow sprite to make it a repeated execution and slide to a random position.
Test your game again, and you should see the crosshair moves randomly on the stage.
That's it for today's sharing. In the next issue, we will learn how to launch arrows and get the score.
If you have any ideas or opinions, please feel free to contact us via services@elecfreaks.com.
Share this post
About the Author

ELECFREAKS focuses on microbit and publishes interesting articles
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Comments