Activity 01
Pair Coding Challenge: Multi-Control Character
Pairs use block-based software to code a sprite that jumps on spacebar, moves left-right on arrows, and changes colour if touching an edge. First, brainstorm controls together. Then code, test, and swap roles to add one condition each. Share working games with the class.
Analyze how multiple events can make a character jump and run simultaneously.
Facilitation TipDuring Pair Coding Challenge, assign roles so one student types while the other tests, ensuring both engage with the logic.
What to look forProvide students with a short code snippet that uses two event listeners and one conditional. Ask them to write down what will happen when the user presses a specific key, and what will happen if they click the mouse.