Class 3 - Methods continued Matthew Hashim Click to edit...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
12/4/09 Click to edit Master subtitle style Methods, continued Matthew Hashim 9/1/2009 11
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MGMT 290D 12/4/09 Goals for Today n Reuse a class-level method in multiple worlds n Use dummies to reposition the camera for different shots within a scene n Understand how an object’s position, orientation, and point of view are determined 22
Background image of page 2
MGMT 290D 12/4/09 Alice Tip: Reusing Your Work n Copy and past techniques speed up development n How to use make copy to duplicate statements ¨ Right-click bar in editing area containing method ¨ Select make copy n Example using make copy ¨ Refer to my_first_method() in Toy Soldier program ¨ Copy three march() statements from first march() 33
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MGMT 290D 12/4/09 Alice Tip: Reusing Your Work (continued) 44
Background image of page 4
MGMT 290D 12/4/09 Using the Clipboard n Alice clipboard ¨ Used to copy and paste all statement types ¨ Located in the events area n Using Alice clipboard in Toy Soldier program ¨ Drag doInOrder in my_first_method() to clipboard ¨ Create scene1() method ¨ Drag statement in clipboard to editing area ¨ Drop statement in the scene1() method n Only one statement may be placed in the clipboard n You can increase the number of available clipboards 55
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MGMT 290D 12/4/09 Using the Clipboard (continued) 66
Background image of page 6
MGMT 290D 12/4/09 Using the Clipboard (continued) 77
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MGMT 290D 12/4/09 Reusing an Object in a Different World n Alice lets you reuse objects in different worlds n Reusing operation involves save and import tasks n How to save the dragon object ¨ Rename the dragon object flappingDragon ¨ Right-click flappingDragon , select save object… ¨ Navigate to appropriate storage location in the directory ¨ Click the Save button n How to import an object into a new world ¨ Open new world and choose Import from File menu ¨ Navigate to object location and select .a2c file 88
Background image of page 8
MGMT 290D 12/4/09 Reusing an Object in a Different World (continued) 99
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MGMT 290D 12/4/09 Reusing an Object in a Different World (continued) 1010
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/04/2009 for the course MGMT 290 taught by Professor Staff during the Spring '08 term at Purdue.

Page1 / 35

Class 3 - Methods continued Matthew Hashim Click to edit...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online