|
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
|
301 Powerups and Effects (15) ***
Students will be able to:
- set and change global variables to create powerups and invincibility powerups.
Vocabulary
- Powerups - objects that instantly benefit or add extra abilities to the game character .
- Invincibility Powerups - makes the player invincible for a short period of time.
New Tynker Code Blocks
The blocks we will be learning about in this lesson are 'change color', 'set color', 'clear graphic effects', 'set variable to', and ''change variable by' Blocks.
1. Concepts
Let’s find out more about how to use true/false variables the variable timer, and effects.
- Click on the 'Concepts' icon.
- Read the captions on the screen.
- Click anywhere to move to the next screen
2. Creating Power-Ups (DIY project)
- This project will show your students how to give the dragon a power-up that allows it to shoot three fireballs at once. This ability allows the dragon to destroy three planes at the same time! The first step to creating this power-up is understanding the new variable “tripleShot”, which acts like an on-off switch for the ability. The variable is set to 1, thus activating the ability, when the dragon touches the gem.
- Notice that the power-up doesn’t actually replace the dragon’s firebreathing code-- it just adds a second and third fireball to it.
3. Invincibility Power-Up (DIY project)
- This project will explain to your students the complicated task of creating an invincibility power-up! They will learn to make the dragon disappear when hit by a plane unless it’s invincible, make the invincibility temporary, and add a graphic effect to show the ability is active.
- Each of these steps is dependent upon variables, and this power-up shows a new use for a variable: making it automatically decrease with time. A loop decreases the value of the “invincibility” variable by 1 every second. This results in the variable reaching zero and the power-up being disabled.
4. Survive the Waves (puzzle)
In this puzzle we need to program the dragon to be invincible.
- Read the text and click on Get Started.
Question 1 :
Describe what should happen when the green gem is touched.
- When the green gem is touched invincibility should be increased by 10.
Question 2:
How is invincibility decreased?
- Invincibility counts down by one, once every second until it reaches zero and the dragon stops being invincible. Are there any questions?
Question 3: Can invincibility be increased again once it reaches zero?
- Every time the dragon touches a green gem, invincibility is increased by 10
5. Power Up
- This project is a fun opportunity for you to show your understanding of power-ups and effects.
- The game is already playable, but it needs some mechanics added, such as:
- health for the hero
- a score-keeping system
- power-ups
- Add your name and share it to the Classroom Showcase
6. Quiz
Conclusion
In this lesson we learned how to set and change global variables to create powerups and invincibility powerups.
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/
|