1 / 18

Creating An Animation Program

Creating An Animation Program. Alice. Recall from last lecture. We began the animation creation process We introduced the concept of storyboard We will continue using the example presented last lecture. Step 2: Implementation. Implementing an animation requires

Télécharger la présentation

Creating An Animation Program

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Creating An AnimationProgram Alice

  2. Recall from last lecture • We began the animation creation process • We introduced the concept of storyboard • We will continue using the example presented last lecture

  3. Step 2: Implementation • Implementing an animation requires • Setting Up the Initial Scene in Alice • Writing the Program (Script)

  4. Create Initial Scene

  5. Techniques and Tools • Mouse used to • set up the initial scene • approximately position objects in the scene • Camera Navigation is used to • set the camera point of view • Drop-down menu methods are used to • resize objects • more precisely position objects in the scene • Scene Editor's Layout Manager is used to • obtain specific alignments • position one object relative to another object

  6. Writing A Program • "Writing" a program (script) • a list of instructions to have the objects perform certain actions in the animation

  7. Writing the Program • Our planned storyboard (to-do list) is: • The idea now is to translate the design steps to program instructions. Snowman turns to face snowwoman. Snowman “makes eyes” and calls out to snowwoman. Snowwoman turns around.

  8. Translating the Design • Some steps in the storyboard can be written as a singleinstruction • The snowman turns to face the snowwoman • Other steps are composite actions that require more than one instruction • The snowman tries to catch the snowwoman’s attention is two actions • Snowman says “ahem” • Snowman raises and lowers his eyes

  9. Actions • Sequential • Some actions occur one after the other • first step (snowman turns to face snowwoman) • second step (snowman tries to get snowwoman’s attention) • Simultaneous • Other actions occur at the same time • Snowman says "Ahem" and while simultaneously blinking his eyes

  10. Action Blocks in Alice Sequential Action Block Simultaneous Action Block

  11. Write the Animation Program • Will develop in class.

  12. Coding the first 2 steps • Things to note: • Nesting of DoTogether and DoInOrder blocks • Arguments for the move instruction • direction • distance

  13. 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.

  14. Comments • While Alice instructions are easy to understand, it is often desirable to be able to explain (in English) what is going on in a program • We use comments to explain to the human reader what a particular section of code does

  15. Notes: 1) Comments appear in green 2) Alice ignores comments. 3) Comments make the program easier to read.

  16. In the previous example, the comment described a large block of program code. • Comments also can be used for a small subsection of the program code.

  17. Assignment • Read Chapter 2-2, A First Program • Read Tips & Techniques 2, Orientation and Movement Instructions

  18. Lab • Lab 2-2

More Related