Creating An Animation

Creating An Animation

Creating An Animation Program Alice Recall We began the animation creation process We introduced the concept of storyboard We will continue using the example

presented in the previous session Step 2: Implementation To implement the storyboard, translate the actions in the storyboard to a program. Program (a.k.a. script) a list of instructions to have the objects perform certain actions in the animation

Writing the Program Our planned storyboard (to-do list) is: Do the following actions in order snowman turns to face snowwoman snowman blinks eyes and calls out to the snowwoman. snowwoman turns around.

The idea now is to translate the design steps to program instructions. Translating the Design Some steps in the storyboard can be written as a single instruction The snowman turns to face the snowwoman

Other steps are composite actions that require more than one instruction The snowman tries to catch the snowwomans attention is two actions The snowman says ahem The snowman raises and lowers his eyes Action Blocks in Alice

Sequential Action Block Simultaneous Action Block Demo Ch02Snowpeople Concepts in this first program

Program instructions may have arguments Example: for the move instruction, the arguments we used in this example were direction distance DoTogether and DoInOrder blocks can be nested one inside the other

Testing An important step in creating a program is to run it to be sure it does what you expect it to do. We recommend that you use an incremental development process: write a few lines of code and then run it write a few more lines and run it

write a few more lines and run it This process allows you to find any problems and fix them as you go along. Comments While Alice instructions are easy to understand, a particular combination of

the instructions may perform an action that is not immediately obvious. Comments are used to document the code explain the purpose of a particular segment of the program to the human reader. Demo

Ch02SnowpeoplewithComments Comments in this example world illustrate description of the action performed by the entire method description of the purpose of a small segment of code Assignment

Read Chapter 2, Section 2 A First Program Read Tips & Techniques 2, Orientation and Movement Instructions Lab Chapter 2 Lab Lec2

Recently Viewed Presentations

  • PowerPoint Template - Trane

    PowerPoint Template - Trane

    Improving part loadefficiencyis key to reduce building energyconsumption. Monthlytypicalload in comfort application. Selection conditions. ... Tracer UC800. Intuitive navigation throughcolortouchscreen display. Immediate, easy to read, chiller information.
  • Sirius - South African National Department of Health

    Sirius - South African National Department of Health

    Five ten year implementation plan - the first plan 2014-2023. ... Formulated indicators for tracking the implementation of the first ten years of agenda 2063. ... Development of ToRs. Domestication of indicators. Data sources established.
  • Course Summary CS 202 Aaron Bloomfield 1 Outline

    Course Summary CS 202 Aaron Bloomfield 1 Outline

    Proof methods learned so far Logical equivalences via truth tables via logical equivalences Set equivalences via membership tables via set identities via mutual subset proof via set builder notation and logical equivalences Rules of inference for propositions for quantified statements...
  • Real Time Phasor Data Processing using Complex Number ...

    Real Time Phasor Data Processing using Complex Number ...

    Phasor Data (Voltage, Current or Power) data analysis. Use of complex phasor data (real/imag part) Application of complex Discrete Fourier Transform (DFT) Well known facts on DFT. Results for complex DFT. Application of moving complex DFT to actual phasor data...
  • Ballistics - CFHSFS

    Ballistics - CFHSFS

    Ballistics experts carefully examine used bullets and their spent cartridge casings for obvious markings left from the firearm that shot them. 2. Investigators first get bullets and casings from the suspected firearm to compare to the crime scene bullets and...
  • Chapter 3: Physical Evidence

    Chapter 3: Physical Evidence

    CHAPTER 3:PHYSICAL EVIDENCE. Learning Objectives: List the common types of physical evidence found at crime scenes. Explain the difference between the identification and comparison of physical evidence. Define individual and class characteristics. Give examples of physical evidence possessing these characteristics.
  • Lesson 9 Day 3 - North Allegheny School District

    Lesson 9 Day 3 - North Allegheny School District

    They, too, are listed alphabetically. A thesaurus may also list antonyms for the entry word. Let's work with the word happy. A thesaurus can help you find more exact or interesting words to use in your writing. T330 T330 Look...
  • SOC 3322B - University of Western Ontario

    SOC 3322B - University of Western Ontario

    Introducing a new topic (1=least directive, 6=most directive) Maintaining control of the interview Know what it is you want to find out Ask the right questions to get the information you need Give appropriate verbal and non-verbal feedback Good feedback...