Gaming with conditionals
Take turns to be the input and the output input – put information into program output – programmed actions
Condition starts action If partner touches shoulder wave hand If partner says go laugh for 3 seconds If partner waves once Stand Sit input starts output
Condition switches between actions If partner stands bow Else hop If partner says pig stamp foot once grin input switches between outputs
Condition stops repeated action Repeat until partner says boo nod head shake head Repeat until partner claps move once step forward move one step backwards Input stops repeated outputs
Loops and Conditional Selection Condition starts action Condition switches between actions Forever if touch shoulder turn right 90 degrees Forever if touch shoulder turn right 90 degrees else turn left 90 degrees Including a forever loop means the condition is checked over and over again
Loops and Conditional Selection Condition starts action Condition switches between actions Forever if partner clap jump once bow once Forever if partner clap jump once bow once else wave Including a forever loop means the condition is checked over and over again
Shapes Game Forever if touching circle hum Repeat until touching pentagon wave hands high in air if touching triangle hop else walk normally
Shapes Game Forever if __________________ ________________ Repeat until _______________ _________________ ______________ else
Planning own game Draw or write What will it look like Theme? 15 mins max Draw or write What will it look like Theme? What sprites? What will sprites do? What background?
Planning own game Once the big idea is done Repeat until done Plan algorithm one part Program it Test it Come off the computer to plan a part Draw or write What will it look like Theme? What sprites? What will they do? What background?