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 Loop until partner says boo nod head shake head Loop 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 Loop always if touch shoulder turn right 90 degrees Loop always if touch shoulder turn right 90 degrees else turn left 90 degrees Including an always loop means the condition is checked over and over again
Loops and Conditional Selection Condition starts action Condition switches between actions Always loop if partner clap jump once bow once Always loop if partner clap jump once bow once else wave Including an always loop means the condition is checked over and over again
Shapes Game Always loop if touching circle hum loop until touching pentagon wave hands high in air if touching triangle hop else walk normally
Shapes Game Always loop if __________________ ________________ loop 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 loop 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?