• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeScratchScratch for pcDuino (4) Push the Box
Previous Next

Scratch for pcDuino (4) Push the Box

Posted by: admin , August 29, 2014

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

3.Linker Joystick

box

Step 1: Linker Base Shield to the pcDuino, then install the JoyStick as the diagram

flower-linkbase

Step 2:click the stage, and then click the costumes, then the edit to draw the backgrounds as the red frame

stage0

stage

Step 3: click button1 to draw the box

Step 4:The script of the box  

Part commands

Step5: The script to judge the game success of fail

all command

Downoad the code:4-JoystikPlayBox.zip

Tags: Scratch

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors