Shadow Ridge Middle School Computer Science

Tynker 301

Mrs. Hulstrom

 

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 Conditional Loops (5):

Students will be able to apply these concepts:

  • use conditional loops to animate actors
  • use functions to store and recall long blocks of code

Vocabulary

  • Conditional Statements – a computer programming convention that is used to compare alternatives to determine if they are true or false.
    ~~ The ‘If then’ statement is an example of a conditional statement. ~~
  • Functions - a procedure that completes a certain task

New Tynker Code Blocks



1. Introduction (Concepts module)

  • Let’s find out more about the 'switch to costume' and 'forever if' blocks

2. Looping Knight Moves (DIY project):

  • This module involves programming an extended block of code that controls the knight’s movement using loops.
  • Rather than using “when key pressed”, this project uses the “if key pressed? then” block to constantly check whether the arrow keys are being held down.
  • All the code fits in one huge “forever” loop, which contains:
    • the code for bouncing off edges and walls
    • motion
    • animations

    The code for each direction will be only slightly different-- you will have to alter the “key pressed?” condition as well as the angle.

3. Knight Attacks FUNCTIONS (DIY project)

  • This module cleans up the code from the previous one by using functions.
  • The purpose of the code remains the same-- to move and animate the knight as he runs around with the arrow keys.
  • HINT: the point of functions is to make it easier to do complex things without having to repeat the same code all over the program
  • you will get to code an attack animation for the knight that is triggered with the spacebar.

4. Zombie Survival

  • In this puzzle we need to program the knight to chase and kill all the zombies
  • What sequence of costumes should be selected in the 'switch to costume' block?
    • First change into the Attack 1 costume
    • Then figure out how many attack costumes are left
    • Then, put in a loop that will use wait, and next costume so that gets through all of the costumes each time the function is called.
    • That's all!!!!

5. Animation Control (DIY project)

  • Explore on your own

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
 

Quarter 1 Class Codes 2020-2021
are all located inside your Schoology account!

 

     
 
Shadow Ridge Middle School
12551 Holly Street
Thornton, Colorado 80241
720-972-5040