Messaging (Lesson 9)
Learn how to program Actors to send and receive messages, create a victory message, and create their own adventure game! Coding concepts from this lesson include:
When I Receive
Broadcast
Send Message To
Learning Intention:
- Use code blocks to program Actors to send and receive messages
- Create an adventure game
- Creating an adventure game that includes a hero and enemies!
Success Criterion
~ Journal is complete!
~ You have built Your Own Adventure Game!
- In this DIY project, students will apply concepts and code blocks learned in this lesson to create their own adventure game! The project starts off blank, so students will need to add their own background, Actors, and code.
- Are students struggling to code their Actors? Tell them to use the code in the previous tutorial as a reference.
- Encourage students to use their answers during today’s warm-up for inspiration, and challenge them to incorporate their ideas into their game.
Standard - CSTA:
1B-AP-08 - Compare and refine multiple algorithms for the same task and determine which is the most appropriate.
1B-AP-11 - Decompose (break down) problems into smaller, manageable subproblems to facilitate the program development process.
2-AP-13: Decompose problems and subproblems into parts to facilitate the design, implementation, and review of programs.
2-AP-16: Incorporate existing code, media, and libraries into original programs, and give attribution
Actor Properties (Lesson 7)
~ In this lesson, students will learn how to rotate Actors and use operators to check the properties of other Actors. Coding concepts covered in this lesson include: Property of Actor and Turn.
Nested Loops (Lesson 8)
~ Use nested loops, program Actors to have multiple lives, and create a game with a boss fight!
~ Coding concepts from this lesson include: Wait Until and Nested Loops.
Learning Intention:
- Use code blocks to rotate Actors and check properties of Actors
- Use code blocks to solve a puzzle module
- Create a two-player fireball tennis game
- Use nested loops to program Actors to have multiple lives
- Use code blocks to solve a puzzle module
- Create a game with a boss battle
Success Criterion
~ Journal is complete!
~ You use code in the lesson so I can play your troll game and successfully defeat the trolls
~ Your witch in the Boss Battle does not die until AFTER the third hit
Standard - CSTA:
1B-AP-08 - Compare and refine multiple algorithms for the same task and determine which is the most appropriate.
1B-AP-11 - Decompose (break down) problems into smaller, manageable subproblems to facilitate the program development process.
2-AP-13: Decompose problems and subproblems into parts to facilitate the design, implementation, and review of programs.
2-AP-16: Incorporate existing code, media, and libraries into original programs, and give attributionVocabulary & New Code blocks:
Nested loop: A structure where one loop contains one or more loops
: Pauses the current script until the parameter condition is true.