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

6 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

7 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

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

9 Shapes Game Always loop if __________________ ________________
loop 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 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?

12


Download ppt "Gaming with conditionals"

Similar presentations


Ads by Google