BBoard PONG game. Creative Computing #1

Similar documents
In this project you ll learn how to create a football game in which you have to score as many goals as you can in 30 seconds.

Step 1. CoderDojo Milltown Exercise 1 Pong Page 1 of 13

SCRATCH CHALLENGE #3

Table Football. Introduction. Scratch. Let s make a world cup football game in Scratch! Activity Checklist. Test your Project.

3. Select a colour and then use the Rectangle drawing tool to draw a rectangle like the one below.

Start a new Scratch project. Delete the cat by right-clicking it and selecting Delete.

The Final Fight STAGE. * Download file Scratch Stage 9. Chapter Objective. The Game

Robot Soccer Challenge

Felix and Herbert. Level

LEGO Engineering Conferences ROBOLAB and MINDSTORMS Education Version 4.5 March 2008

Scratch Hands-on Assignments CS4HS - Summer 2017

Start - All Programs - Class Software - Scratch - Scratch move move move Sound play drum move move move play drum Control forever forever forever

Activity 8: Cave Surfing Game

Felix and Herbert. Level. Introduction:

1001ICT Introduction To Programming Lecture Notes

Get it here. Page 1 of 7 Date:Jan 8, 2014

1. First start a new scratch project and remove the default sprite.

mycricketsupport.cricket.com.au General Tips.. Page 2 Wrong Batsman?.. Page 3 Wrong Bowler?.. Page 4 Editing a current over Page 5

Penalty Kick in Ipanema

You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

Encountering Condi.ons

Technology. In the My Files [My Files] submenu you can store all the programs that you have made on the NXT or downloaded from your computer.

ACCOUNT MANAGER REFERENCE GUIDE

Using the Lego NXT with Labview.

Technology. Using Bluetooth

Technology. In the My Files [My Files] submenu you can store all the programs that you have made on the NXT or downloaded from your computer.

Oxygen Meter User Manual

BetTurtle User Guide Part 1. By BetTurtle

Tutorial: Setting up and importing Splat Maps from World Machine

Air Ball! Evaluation copy

Write Your Own Twine Adventure!

Stick Up Cam Battery

Slide 1 - Welcome to an Overview of the Student Center and New Titan Online

First Edition. Teaching Scratch. at primary school. Thomas Arts

PC Configuration software for Discovery MkVI v 1.03 User guide

Managing Timecard Exceptions

Locating Tournament Results

OZCHASE RACING - ONLINE NOMINATIONS USER GUIDE - Ozchase Online Nominations User Guide Page 1 of 28

Trion PECVD SOP IMPORTANT: NO PLASTIC, TAPE, RESISTS, OR THERMAL PASTE ARE ALLOWED IN THE CHAMBER

Boat Race. Introduction. Scratch. You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

Technology. Using Bluetooth

PROGRAMMING LINX LEARNING GAME

Version 3.1.0: New Features/Improvements: Improved Bluetooth connection on Windows 10

USER GUIDE USER GUIDE

Process VOC from Another State

Another window pops up where you can input some parameters (called System Preferences) for your team as shown

Copyright Velocomp LLP 2006

SENSUS PRO MANAGER (for SENSUS or SENSUS PRO devices) User s Guide -- Windows. Version 2.0 Published October 17, ReefNet Inc.

Boat Race. Introduction. Scratch

GA-300 Gas Analyzer. Technical Note. Overview. Front Panel. iworx Systems, Inc. GA-300

TANK MANAGER FOR TWO TANKS OPERATING MANUAL. 10/31/11 C-More T6C L color touch panel

Previous Release Notes

Using the Sailwave Results Programme April 2016

Published by INSTRUCTION MANUAL

To register your AED at the National AED Registry please go to and click on Get Started

Activity 5.1B Dragster Assembly Drawing

Two less balls than there is children One racquet (for large groups use a small mat or basket) A large space

Mounting the RoboFocus RF-3 Unit on the LX-200/400 MicroFocuser

The ICC Duckworth-Lewis Calculator. Professional Edition 2008

1. Set up your Stick Up Cam Wired.

Robo-Ball: April 24, 2010 TEAM AND LEADER PACKET

DIVE MEET SCORING INSTRUCTIONS. Day before meet

Operating Manual. SUPREMA Calibration. Software for Fire and Gas Warning Units. Order No.: /01. MSAsafety.com

RUNNING MEET MANAGER IN SUPPORT OF MEETS (2016) Greg Wright(6/3/16) First, YOU DO NOT NEED TO DO THIS UNLESS YOU ARE THE HOME TEAM

The Soccer Guy. By Marcus Hilgers Faisal Ahmad Jacob Borer

Gas Analyzer for TC Sensors (CO2, H2, N2) Series 62101, 64101, Operating Manual

Mapping a Magnetic Field. Evaluation copy. Figure 1: Detecting the magnetic field around a bar magnet

INSTALLATION MANUAL. M-WRG-S/Z-T(-F, -FC) and InControl pushbutton sensor

Dive Sheets & Running Events Meet Management Software Tutorial for EZMeet Version 3.1 revised 2/4/2006

Contents. Requirements. Equipment. Rules. Batting. Bowling. Fielding. Umpiring. Scoring. Score sheet. CricHQ App

Fitbit Walking Challenge Team Leader Guide

DATA SCIENCE SUMMER UNI VIENNA

XC2 Client/Server Installation & Configuration

Operation of the contact mask aligner Canon PPC 210 Projection Print Camera

WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION

How to run a club night

Old Kings Oval Electronic Scoreboard. Scoreboard Operation and Advanced Scoring Instructions

American Thoroughbred Handicapping Program

Acidity Tester. Project OBJECTIVES DIFFICULTY LEVEL

Australian Standards. Constraints

Members Online Booking

The Bat. A Strategy by Team Aphid

Tutorial: Adding Twitch ChatPlay

AED Checklist. Philips On Site. Weekly and Monthly Reports

Fundamental hurling session with Paudie Butler

WAA SWIMMING TEAM REGISTRATION PROCESS

Microsoft Windows Software Manual for FITstep Stream Version 4

User Manual. ENGLISH Pages FRANÇAIS Pages ESPAÑOL Páginas DEUTSCH Seiten 53-69

Experiment 11: The Ideal Gas Law

Newton s Triple Play Explore

v2.3 USER MANUAL

How to enter a scorecard into Play Cricket

MULTITUBE BUBBLE TUBE BY ROMPA (U)

Step One - Visiting the School Zone:

Dive Planet. Manual. Rev Basic User Interface. 2 How to organize your dives. 3 Statistics. 4 Location Service and Map View.

OPTIMA 7 - BIOGAS Calibrating the gas sensors SENSOR ADJUSTMENT. Diamond Scientific 625 Peachtree St., Cocoa, Florida /Tel:

World Robot Olympiad 2018

HyperSecureLink V6.0x User Guide

Downloading/Transferring Golf Courses

IMPACT LOCATION SETUP. Updated July 2018

Transcription:

BBoard PONG game Creative Computing #1

BBoard Pong: Create the Pong game in Scratch (S4A)......but use your BBoard as the controller! Once you have learned some basic skills, you can create your own interactive games!

First step: Download Scratch4Arduino (S4A) Goto: s4a.cat Click on Downloads and follow the install instructions WATCH OUT! You will need to install some firmware onto your Arduino first. CLICK HERE for more help

Connecting BBoard to Arduino For power: B/B9 -> A/GND B/B8 -> A/5V To control red light: B/B1 -> A/D10 Don t worry about the colour of the wires. It doesn t matter - its only plastic covering!

Test: Is Arduino talking to the BBoard? Switch on the red light when...the space bar is pressed (Remember the BBoard red light is connected to the Arduino D10 port so when D10 is on, so is the red light)

Controlling the light using a button To receive button 1 press event: B/B5 -> A/D2 We are now going to change pressing the space bar with pressing the BBoard button (switch 1) Once we know how to do that, we can get both buttons working = a game pad!

Change Space bar press -> Button 1 press Now if the button 1 is pressed...it sends a signal to D2. Then D10 switches on the red light! Else, the light is switched off.

Challenge #1 If BBoard B3 connects to the green light and...the Arduino can accept another button event on D3...re-arrange these blocks to make button 2 switch on the green light

Solution #1 Now both button presses are captured...and result in a light being switched on or off

Wiring recap: Just to make sure! You should have the following wired up: B9 -> GND B8 -> +5v B1 (red light) -> D10 B3 (green light) -> D12 B5 (switch 1) -> D2 B6 (switch 2) -> D3

The next step: Create the PONG game We now have the basic wiring and skills sorted. Now we need to: 1. 2. 3. 4. 5. 6. Hide the Arduino and ports control Create the PONG sprites (bat, ball, boundary) - CLICK HERE for help Make the bat move when arrow keys are pressed Make the ball bounce around the screen until it hits the boundary Make the ball bounce off the bat Control the bat using the BBoard buttons

Hiding the Arduino sprite and panel SIMPLEZ! Use Hide from a When green flag event For the panel...right click and Hide

HELP! CLICK HERE Create the Pong sprites: bat, ball, boundary Don t forget to name the sprite appropriatley Click the paintbrush to create a new sprite Don t forget to centre the sprite!

Make the bat move when arrow keys are pressed IF left arrow pressed THEN Move bat 10 steps to the left END IF IF right arrow pressed THEN Move bat 10 steps to the right END IF

Ball bounces until hits the boundary Bounce around the screen...until it hits the boundary

Ball bounces until hits the boundary or bat Bounce around the screen...until it hits the boundary or...or the bat, where upon it bounces off

Move the bat with the BBoard buttons [Select the Arduino control] Create a movebatleft or movebatright broadcast event...if the button 1 or button 2 is pressed.

The new bat code IF button 1 pressed THEN Move bat 10 steps to the left END IF IF button 2 pressed THEN Move bat 10 steps to the right END IF

Extension challenges Player has x3 lives Indicate number of lives using lights on BBoard (x3 lights = x3 lives) Add sound when ball hits bat or boundary Start a new game by using the light sensor as another button