• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeScratchHurdle Race Game (Scratch for pcDuino)
Previous Next

Hurdle Race Game (Scratch for pcDuino)

Posted by: admin , May 18, 2014

Introduction:

The runner is running to the finish line and when the person is near the railing, we press the button, the runner will  jump over the obstacle , and  if the runner touch the railing, he will be back to the start line.

The hurdle game will finish if the runner touches the red finish line.

效果

Parts List

1. 1  x  pcDuino

2. 1  x  Linker button

Step 1: Install the linker base to the pcDuino,  then connect the linker button as follows

linkbase033

IMG_0312

Step 2: Click Stage to import the background:

backwards

Import the runner:

选角色

选角色2

Then draw the obstacle:

 栏杆

The red finish line:

red line

Write the Script:

代码

Click the Green flag, the runner will move.

when the runner touches the obstacle, it will display “try again”:

 fail

When the runner touches the red line,it will display “success”:

success

Download the Code:3-run.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