Introduce:With the direction of Joystick to control the moving of the box, if touch the Box border,it will return to the start point; when it moves to the read area, it means successfully finish the game.
Part list:
1. pcDuino3
2. Linker Buzzer
Step 1: Linker Base Shield to the pcDuino, then install the JoyStick as the diagram
Step 2:click the stage, and then click the costumes, then the edit to draw the backgrounds as the red frame
Step 3: click to draw the box
Step 4:The script of the box
Step5: The script to judge the game success of fail
Downoad the code:4-JoystikPlayBox.zip
Leave a Reply
You must be logged in to post a comment.