Presentation is loading. Please wait.

Presentation is loading. Please wait.

Gaming with conditionals

Similar presentations


Presentation on theme: "Gaming with conditionals"— Presentation transcript:

1 Gaming with conditionals

2 Take turns to be the input and the output input – put information into program output – programmed actions

3 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

4 Condition switches between actions
If partner stands bow Else hop If partner says pig stamp foot once grin input switches between outputs

5 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

6 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

7 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

8 Shapes Game Forever if touching circle hum
Repeat until touching pentagon wave hands high in air if touching triangle hop else walk normally

9 Shapes Game Forever if __________________ ________________
Repeat until _______________ _________________ ______________ else

10 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?

11 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?

12


Download ppt "Gaming with conditionals"

Similar presentations


Ads by Google