
One way to make your game more fun is to upgrade your sprites. Now it is time to make the game your own! Now you have a very simple game! You have a sprite that moves randomly around the screen, and you can chase it using the sprite controlled by the dials. What numbers should go in the pick random blocks? Program the second sprite to move to a random position every three seconds.

To see the scripts for a given sprite, just select that sprite below the stage. Now you have a new sprite and a new scripts area to write scripts for that sprite. Click the new sprite button at the bottom left of the stage to add a new sprite. Now that you can use one sprite to move around the screen, let’s add another sprite. What numbers do you need to fill in the blanks so that your sprite can get to any point on the stage? You can use math blocks to make your sprite cover this whole area as you turn the dials. The stage in Snap! Is a coordinate grid that goes from -240 to 240 in the x -direction and -180 to 180 in the y -direction. How much of the screen can the sprite cover? Try running this code and use the dials to move the sprite. For this, you will use the go to block to continually send the sprite to a position on the screen determined by the dials. You will use the dials to move a sprite on the screen in Snap!. Metal brads are useful for attaching the dials to the cardboard, but make sure that the brads don’t touch on the backside of the cardboard.Ĭonnect to the Hummingbird and open Snap!. If you want, you can build a cardboard controller to hold your dials.

Start by connecting two dials to Hummingbird sensor ports 1 and 2. Students can be challenged to create their own video game, complete with controller! One example is shown here, but students will come up with many other creative ideas. Snap! enables students to create physical devices with the Hummingbird that interact with programs that also display information on the computer screen.
