Introduction: Easy Dodging Video Game With Makey Makey

I created a game where the player uses a physical controller connected to the Makey Makey to control a character. The player will try to move the character around so that it will not get hit by any rocks. I made this project because I wanted to create a simple game project where even small children could experience the fun of designing a game. As such, it is intended for the younger generation to create in order to learn the process of how a game is made. By making this game, you are able to entertain your friends, have your parents evaluate it, and gain firsthand coding experience.

Supplies

  • Cardboard
  • Paper
  • Metal discs
  • Aluminum foil
  • Tape
  • Alligator clips
  • Drawing utensils
  • Makey Makey kit
  • Chromebook or laptop
  • Scratch (https://scratch.mit.edu)

Step 1: DESIGNING THE START SCREEN

  1. First, we will design an animated and interactive start screen. To do this, go to the Backdrops section of your scratch project and create a new backdrop.
  2. Name it “StartScreen.”
  3. Create a rectangle that covers the entire backdrop with any color/gradient you want. This will be the background color/gradient.
  4. Create a large text box with any font you like and name it something like “Rock Dodge.”
  5. Create a smaller text box below it and write in the instructions for the game, which could be something like “Don’t let the the character get hit!” (First image)
  6. Next, let’s give the start screen some life! Let’s create a sprite named “StartButton.”
  7. Once that sprite is created, inside the Costumes section, create a text box with the words “Press UP to start.” (Second image)
  8. Create a variable named “hasGameStarted,” which as its name suggests, will indicate whether or not the game has started yet. Uncheck the variable upon creation to stop it from displaying on the screen.
  9. From the sound library, add the sounds “B Elec Piano” and “Suction Cup” to the sprite.
  10. Create a new message named “gameStart”
  11. Inside the StartButton sprite, copy the code from the (Third image)

Step 2: CREATING THE OBSTACLES

  1. Create another sprite and rename it to “Rock.” The sprite I picked for this one from the Scratch library was Rocks. Resize it to about a third of its original size.
  2. Create a variable named “spawnSpeed,” “moveSpeed,” and “isGameOver.” Uncheck all of them when they are created.
  3. Create a new message name “gameOver”
  4. Copy the code from (First image) into the Rock sprite (careful, it’s a lot!)

Step 3: MAKING THE PLAYER

  1. Create another sprite and rename it to “Character.” The sprite I picked for this one was Pico.
  2. Create a variable named “score.” You can leave it checked.
  3. Copy the code from (First image) into the Character sprite

Step 4: ANIMATING THE BACKGROUND

  1. Go to the Backdrops section and create another backdrop, which in my case, is “Stars.” Rename it to “GameBackground.” (First image)
  2. Next, create another backdrop and name it “EndScreen.” You can do whatever you want, but I put a big fat “GAME OVER!” on mine. (Second image)
  3. From the sound library, add any background or ending music you want. In my case, I chose Chill.
  4. Copy the code from (Third image) into your Backdrops section
  5. Wa-la! You’re done with your game's code! Go ahead, test it out, make your own changes, and have fun!

Step 5: DESIGNING THE CONTROLLER

  1. Get your paper and cardboard out. Using tape, cover the entire piece of cardboard with the paper (First and second image). This is the base of your controller.
  2. Tape your metal discs onto the controller towards the right (Third image)
  3. Tape a strip of aluminum foil to the left side of the controller (Fourth image)

Step 6: ADDING THE MAKEY MAKEY

  1. Use aluminum foil to create "bridges" from each metal disc to the edge of the paper. Then, with the alligator clips:
  2. Use one clip to connect the foil on the left side to the "Earth" of the Makey Makey
  3. Use four clips to connect each "bridge" of the metal discs to the corresponding arrow keys on the Makey Makey
  4. (First image)
  5. Plug in the Makey Makey to the computer and decorate your controller. Add things like "place your left finger on the left," "good luck," and however many images you want!

Step 7: TEST IT OUT!

After you start your Scratch project, place one of your left fingers onto the left strip of aluminum foil and with your gith hand, you can control the character!