Friday, February 7, 2014

Programming a Game on Hopscotch

This lesson owes a debt of gratitude to Wes Fryer, his book of Hopscotch Challenges has made this lesson possible.  Get it here.

We have use Hopscotch to create shapes and drawings.  Today I want you to create a game.  Let's get started.




...
if this slideshow doesn't work all the images are on the next page




Start a New File in Hopscotch





Setting up Tilt Control




Now to Set up Another Character.



A large repeat loop keeps the character moving




Using the random operators will keep the game interesting 

Degrees goes from 1-360 

Setting up a Collision Rule










No comments:

Post a Comment