Activity 2: Sports Commentary

GOAL: You will create a dance, cheerleading, karate, or basketball performance competition. You will write the commentary for each of the competitors and learn about the computer science concept events.

  1. Pick up your passport
  2. What did we do last class?
  3. Today’s activity will introduce an important computer science concept called events. Events are things that cause an action. In this case, keyboard presses will cause athletes to perform cool moves with commentary.
  4. At the end of this activity, and for each activity after that, we will select 2 projects to showcase on the projector at the beginning of the next class. So, the project that you create could be showcased to everyone next class! Are there any questions about the showcase selection?
  5. Go to cs-first.com.
  6. Sign in with the username and password from your club pass.
  7. WATCH VIDEO 1 & CREATE:
    1. Start watching the first video.
    2. Open the starter project.
    3. Remix the project.
    4. Sign in to Scratch.
    5. Delete one of the commentator sprites.
  8. WATCH VIDEO 2 & CREATE:
    1. Make the sprite look like it’s performing using the “change costume” and “repeat” blocks.
    2. Slow down the costume changes using the “wait” block.
    3. Make the code run when the user presses a key using the “when key pressed” block.
    4. Copy the code to the other sprites. Change the keypress event for each athlete.
    5. Tinker with the values in the repeat loops and “wait” blocks.
  9. WATCH VIDEO 3 & CREATE:
    1. Use the “say” block to introduce the competition.
    2. Add a “when flag clicked” event above the “say” blocks to start the commentary.
    3. If you need help deciding what to write in the “say” blocks, think about the type of commentary you might hear on a sports program.
  10. WATCH VIDEO 4 & CREATE:
    1. Add commentary for each athlete.
    2. Start the commentary with the same event that makes the athlete perform.
    3. Common problem: You may not have the correct key connected to the commentary. To fix this, select the athlete you want to comment on, check the event that makes it perform, and make sure the commentary uses the same key.
  11. SAVE YOUR PROJECT BEFORE MOVING ON
  12. CHOOSE ADD-ONS & CREATE:
    1. Customize your projects by trying some add-ons. Add-ons allow you to explore programming concepts and features as you follow the guidance and instruction in the videos.
    2. Choose an Add-On, and click “watch” to learn how to build it. When you click “watch,” the add-on will open. To go back to the add-on selection screen, click on the X at the top of the video.
    3. Once you finish one Add-On, try another one below the video!
  13. WRAP UP REFLECTION & VIDEO:
    1. Now it’s time for the CS First reflection and wrap-up video. Click the ‘next’ arrow, and complete the reflection.
    2. After you’ve completed your reflection, click the ‘next’ arrow to watch the wrap-up video.
    3. After watching the wrap-up video, write a positive note to a classmate on a sticky note. Thank someone who helped you, or call out a great project. Once you’ve written a shout-out, place it on the G+ board.
  14. SHARE & SHOWCASE:
    1. Return to your Scratch project. If you haven’t already, please name your project, and, if you’d like, share it by clicking the “share” button in Scratch. Sharing you project will allow any user on the Scratch website to view it. If you can’t find the “share” button, ask a neighbor for help. Once you’ve shared your project in Scratch write a description that explains how to use it. Then, in one minute, we’ll begin sharing projects with our neighbors.
    2. Please begin sharing your projects with the people sitting near you. During this time, I shouldn’t see anyone working on their projects.
  15. SELECT SHOWCASES:
    1. View the showcase selector on the board
  16. WRITING FOR TODAY:
    1. In your Word Online file for this class, please respond the following questions:
      1. What was your favorite part of this activity?
      2. How are events used in computer science?
      3. How did you use events in your project?