|
Computer Science Home
6th Grade Tech Ed
7th Grade Computer Science
8th Grade Computer Science A
Gmail
Google Drive
Google Classroom
Infinite Campus
Typing.com
(Join Class through Google Classroom)
Schoology
Code.org
Tynker Coding Website
Tynker Resource Page
Tynker Online Support Video Help
Quizlet | Quizlet LIVE
Everfi
Khan Academy
Social Media Tips
Netsmartz
Code HS
Karel the Dog class code: 1251
CSTA Standards
ISTE Standards
|
Nested Loops (8): ***
Students will be able to:
- Program actors to have multiple appearances and multiple lives
Vocabulary
- Nested Loops - occurs when one loop block is placed inside another loop.
New Tynker Code Blocks
The blocks we will be learning about in this lesson are 'wait until', 'repeat', 'goto x y', 'pick random', and 'touching' blocks.
1. Concepts
Let’s find out more about how to use the 'wait until' block and more about 'nested loops'
- Click on the 'Concepts' icon.
- Read the captions on the screen.
- Click anywhere to move to the next screen
2. Multiple Lives 2 (DIY project)
- This module will show you how to make an enemy that requires multiple hits to defeat, just like a boss in a video game.
- The zombie’s code uses the “wait until” block inside and after a “repeat” loop. When the zombie is touched by the fireball, it proceeds with playing the sound effect after the “wait until” block.
- Notice that the code for firing the fireball is different now. The fireball goes wherever you click. Click the zombie to hit the zombie.
3. Multiple Lives (2)
- This module expands the previous module by making the zombie respawn in a different location after it is defeated. When the zombie is defeated the second time, a victory song is played, and it does not respawn again.
- Examine the nested loops in the zombie’s code.
- What does the inner “repeat 2” loop accomplish?
- What does the outer “repeat 2” do?
- How many times will the “punch 1” sound play overall?
4. Let There Be Lives (puzzle)
In this puzzle we need to program the knight so he has enough lives to collect all the treasure.
5. Boss Battle (DIY project)
- You will be guided through the process of programming a boss fight!
- Some of you may not be familiar with the idea of a boss fight.
- Boss fights are a staple of the video game genre.
- Bosses are difficult enemies that pose a greater challenge to the player, and are often more intimidating and interesting than regular enemies.
- Use this project as a basis for your own custom boss fights.
6. Quiz
U.S. Standards
- K-12 CTSA Computer Science Standards (Revised 2017)
Computer Science Teachers Association:
- 1B-AP-10
- 1B-AP-11
- 1B-AP-12
- 1B-AP-15
- 2-AP-12
- 2-AP-13
- 2-AP-15
- 2-AP-16
- 2-AP-17
CCSS-Math: MP.1
- CCSS-ELA: RF.5.4.A, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
- CS CA: 3-5.AP.10, 3-5.AP.12, 3-5.AP.13, 3-5.AP.14, 3-5.AP.17, 6-8.AP.12, 6-8.AP.13, 6-8.AP.16, 6-8.AP.17
- ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b
***All lesson information is from https://www.tynker.com/
|