Scratch Coding + Scratch-Link WiInterface Game Controller

5. Scratch-Link Projects

5.1. NunChuk Buttons&LEDs+Pong Game

NunChuk Buttons+Pong Game (Beginner)

Level: Beginner (Core & Extension)

Hardware required: WiInterface, Funster or ScratchLink with NunChuk

Prerequisite:  Pong Starter Game tutorial by the Scratch Team which is in Scratch2 offline Editor/ Tips /Step-by-step/ Create a Pong Game

Core Tasks: Starting with the Pong Starter Scratch Code add the following interactivity with physical hardware:

  1. LEDs to illuminate appropriate colour and duration when ball is struck by paddle and when ball gets out and game is over (outputs)
  2. Control the paddle movement with the Nunchuk buttons (on/off or 0/1 i.e. digital inputs)
  3. Adjust the difficulty appropriately with the speed of the ball and responsiveness of the paddle via the Nunchuk
  4. Change the sprites and backdrop to something appropriate
  5. Provide an algorithm of your code action and control logic either flow chart or english list
  6. Comment your code with brief explanations of the logic or actions of blocks but do not repeat the block words
  7. Test and evaluate your final code- state how well it meets the core task?  How would you improve it?
  8. Put all of the above in your scratch code or as directed by your teacher
  9. Save all your work with your name and task, i.e. "Johnny_B_Pong.sb2"

Examplar Code:

Pong Game Starter + Wii buttons & LEDs

Video Tutorial: