In this lesson, youth learn how to add depth to their game using Multiple levels and Smarter Enemies. The AI Enemies in MakeCode Arcade handout and self-guided video of the lesson are provided.
To prepare for the lesson:
- Print out copies of the AI Enemies in MakeCode Arcade handout for everyone.
- Set up the self-guided interactive AI Enemies in MakeCode Arcade on your class computer. Review it before the lesson. You can also reference the Facilitator Guide: AI Enemies in MakeCode Arcade for visual screenshots. Make sure you have sound and internet access set up for the computer. It’s recommended to have the site projected on a large screen so youth can follow along together.
- A laptop or tablet per small group.
- Set up the MakeCode Arcade site for all laptops or tablets to be used by youth.
- Write down the vocabulary words on a whiteboard or flipchart for the lesson:
- Words: function, array, iteration and modularity.
- Reference the words when discussing the actions they’ll be taking (discussed in interactive).
- Pencils for everyone.
During the lesson:
- Follow the instructions on the AI Enemies in MakeCode Arcade Interactive. As you click through the steps on the interactive lesson, you’ll notice that there is an audio recording of the written descriptions for each section of the lesson. Play the audio so youth have a choice between listening to the words or reading the words on the screen.
- Have youth answer the quizzes that come up throughout the lesson together.
- Once you arrive at the section of the interactive, “Let’s program a game!” pause the interactive while you place youth in small groups of 2-3 (if you haven’t already done so) and distribute their AI Enemies in MakeCode Arcade handout, and laptop/tablet.
- Have each group sign into their saved tutorials and continue on the Platform tutorial by starting on the fourth tutorial (referenced in the interactive). Have youth work on the handouts in their groups.
- Have them follow along with the interactive in building their video game. Remind them to save it!
- When completed, have youth reflect on their game by answering the questions on their handout. Have them share out as a class, or in small groups.
- What did they learn?
- How did Functions allow you to organize your block code?
- What challenge was most difficult? What helped you work on it?