Learning about Conditional Selection before using it inside a Game
Condition starts action If you are hungry put your hand up If you like computing smile If you are 8 or older Stand Sit
Condition switches between actions If you are a girl Stand Else Bow If you like marmite Wave Frown
Condition stops repeated action Repeat until shout stop Stand Sit Repeat until teacher raises arm Smile Frown Wave once
Sometimes we want the condition to be checked many times so we put it in a forever loop
Condition starts action Forever loop checks the condition over and over again Forever If you are hungry put your hand up If you like computing smile
Condition switches between actions Forever If you are a girl Stand Else Bow Forever loop checks the condition over and over again
Condition stops repeated action Repeat until shout stop Stand Sit Repeat until teacher raises arm Smile Frown Wave once
On the playground there are lots of shapes like these When you get to a shape look at your algorithm to see what actions you should be doing
What algorithms will you write for your friends to do? Forever If touching __________ ___________ if touching _________ ____________ Else Forever If touching __________ ___________ Repeat until touching ________ _____________ What algorithms will you write for your friends to do?
Three stage game design and make Plan how to move and steer a sprite (Purple Planning) Program a sprite to move and steer (Pink Programming) Test and debug movement and steering (Teal Testing) Plan how sprite will respond to colours on the stage Program sprite to respond to colours on the stage Test and debug how the sprite responds to colours Plan any extra additions Program extra additions Test and debug extra additions