Elementary School course

Programming 102

  • GRADES 3-4
  • INTERMEDIATE
  • WEB IPAD
  • 16 LESSONS
Slide: 1 of

Answer Key

Module 4: Frame Based Animation

Module 6: Built-in Animation

Module 7: Gather the Armor

Module 9: Adventure Game

Module 10: Quiz

1. If the code for an animation contains a {"func":"blockControlWait","values":[{"type":"number","value":""}]} block, what will increasing the parameter in the block do to the animation? (For example, increasing it from .5 to 1)

  • Make the animation slower
  • Make the animation faster
  • This would have no effect on the animation
  • Make the animation pause forever

2. If you had an Actor with four Costumes and wanted to repeatedly switch through the Costumes to create an animation, which of the following sets of blocks is important to use?

  • {"func":"registerFlagTrigger"}, {"func":"blockControlForever","containers":[null]}, {"func":"blockLooksNextCostume"}, {"func":"blockControlWait","values":[{"type":"number","value":""}]}
  • {"func":"blockControlBroadcast","values":[{"type":"string","value":""}]}, {"func":"blockControlWait","values":[{"type":"number","value":"1"}]}
  • {"func":"registerSpriteTrigger"}, {"func":"blockSoundPlay","values":[{"type":"string","value":""}]}
  • {"func":"blockMotionMove","values":[{"type":"number","value":"10"}]}, {"func":"blockLooksNextCostume"}

3. True or False: Actors automatically bounce and turn around when they hit an edge. You don't need to add any code blocks to make this happen.

  • True
  • False

4. True or False: Given the code below, increasing the parameter in the 'Move' block to 20 makes the Actor move fewer pixels per second.
{"func":"blockControlForever","containers":[{"func":"blockMotionMove","values":[{"type":"number","value":"10"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}]}

  • True
  • False

5. Which of the following code blocks is a loop block?

  • {"func":"blockControlForever","containers":[null]}
  • {"func":"blockControlWait","values":[{"type":"number","value":"1"}]}
  • {"func":"registerSpriteTrigger"}
  • {"func":"blockMotionMove","values":[{"type":"number","value":"10"}]}

6. What is the difference between the {"func":"blockLooksSwitchCostume","values":[{"type":"string","value":""}]} block and the {"func":"blockLooksNextCostume"} block?

  • There is no difference; you can choose which one you want to use
  • The {"func":"blockLooksSwitchCostume","values":[{"type":"string","value":""}]} block is for the Stage while the {"func":"blockLooksNextCostume"} block is for Actors
  • The {"func":"blockLooksSwitchCostume","values":[{"type":"string","value":""}]} block lets you choose which Costume to switch to while the {"func":"blockLooksNextCostume"} block just makes the Actor put on its next Costume
  • The {"func":"blockLooksSwitchCostume","values":[{"type":"string","value":""}]} block switches the Costume immediately while the {"func":"blockLooksNextCostume"} block waits 2 seconds and then switches the Costume

7. What does the {"func":"blockControlWait","values":[{"type":"number","value":""}]} block do?

  • Pauses the program for however long you specify
  • Deletes the Actor
  • Waits until the user presses play to start running the program
  • Ends the program

8. What kind of loop is a 'Forever' loop?

  • Infinite
  • Round
  • Temporary
  • Conditional

9. How do you make an Actor animate (like Codey the troll)?

  • Add a bunch of Costumes to the Actor and switch through them quickly
  • Drag the Actor around with your mouse
  • Draw the Actor and it will automatically update
  • None of the above

10. Tessa has an Actor with three Costumes: Costume1, Costume2, and Costume3. Her Actor starts out wearing Costume1. In her program, she uses the {"func":"blockLooksNextCostume"} block once. What Costume will her Actor be wearing at the end?

  • Costume1
  • Costume2
  • Costume3

11. Will has a {"func":"blockMotionMove","values":[{"type":"number","value":"10"}]} block in his Actor's code. It makes the Actor move a little to the right. If he changes the block to {"func":"blockMotionMove","values":[{"type":"number","value":"50"}]}, what will happen?

  • The Actor will move further to the right
  • Nothing changes
  • The Actor won't move at all
  • The Actor will play a sound

12. How do you make an Actor animate and move across the Stage at the same time?

  • Do the animation by switching Costumes, and use a 'Move' block to move across the Stage
  • You cannot do this
  • Use a 'Move' block and the Costumes will automatically change
  • Switch Costumes and the Actor will automatically move

U.S. Standards

  • CCSS-Math: 3.NBT.A.2, MP.1
  • CCSS-ELA: RF.3.4.A, RF.4.4.A
  • CSTA: 1B-AP-10, 1B-AP-11, 1B-AP-12, 1B-AP-15
  • CS CA: 3-5.AP.13, 3-5.AP.14, 3-5.AP.17
  • ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 7.c

U.K. Standards

Key stage 2
Pupils should be taught to:
  • design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
  • use sequence, selection, and repetition in programs; work with variables and various forms of input and output
  • use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
  • understand computer networks, including the internet; how they can provide multiple services, such as the World Wide Web, and the opportunities they offer for communication and collaboration
  • use search technologies effectively, appreciate how results are selected and ranked, and be discerning in evaluating digital content
  • select, use and combine a variety of software (including internet services) on a range of digital devices to design and create a range of programs, systems and content that accomplish given goals, including collecting, analysing, evaluating and presenting data and information
  • use technology safely, respectfully and responsibly; recognise acceptable/unacceptable behaviour; identify a range of ways to report concerns about content and contact

Lesson 4: Review: Character Creator

Course: | iPad Web

  • Intro Video
  • Concepts
  • Frame Animation Example
  • Frame Based Animation
  • Built-in Animation Example
  • Built-in Animation
  • Gather the Armor
  • Adventure Game Example
  • Adventure Game
  • Quiz

Description

Advance your class to intermediate level programming concepts using a wider set of visual blocks. In Snowball Siege, students learn about layering, Actor visibiliy, motion, and collisions. Then, in Star Runner, they use line drawing commands and program math art. They build several mini-games while understanding how to create more complex programs. After completing this lesson plan, students will be able to build a wide variety of school projects and their own comprehensive games.

Topics

  • Animation sequences
  • Motion
  • Game design basics
  • Built-in animation commands
  • Advanced keyboard and mouse control
  • Sending and receiving messages
  • Actor layering
  • Advanced events
  • Math operators
  • Functions

What Students Learn

  • Gain confidence in building a variety of programs
  • Apply programming concepts to build your own games
  • Design characters with multiple animation sequences
  • Write interactive stories with multiple scenes
  • Make an image editor using drawing primitives
  • Define more advanced keyboard and mouse interaction
  • Program special effects and explosions
  • Troubleshoot and debug programs

Technical Requirements

* Online courses require a modern desktop computer, laptop computer, Chromebook, or Netbook with Internet access and a Chrome (29+), Firefox (30+), Safari (7+), or Edge (20+) browser. No downloads required.
* Tablet courses require an iPad (iOS 10+) with Tynker or Tynker Junior app installed and Internet access