Professional Documents
Culture Documents
PRO-C3: What Is Our GOAL For This MODULE?
PRO-C3: What Is Our GOAL For This MODULE?
RO-C3
Conditional Programming
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
2. Put the condition inside "( )" and statements/instructions we want the computer to
run if that condition is met inside "{ }"
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
Code:
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
4. Write another IF block to make the ball go down when the down key is pressed.
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
6. Use sprite.isTouching property to check if the ball is touching one of the walls.
7. If the ball is touching one of the walls, change the position of the ball to its starting
point.
8. Repeat this for all the walls in the maze.
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
10. Scramble the keys and the direction in which they take the ball:
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.
P
RO-C3
What’s next?:
We will make the game a little more challenging by adding more objects.
he content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to
© 2019 T
share any part of this message with any third party without a written consent of the sender. If you received this message by mistake,
please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.