170 likes | 533 Views
Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University Course organization http://www.tulane.edu/~howard/TIDE1840/ Please, no food or drink! Course organization
E N D
Program design and implementationSept 7, 2010 – Day 2 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University
Course organization • http://www.tulane.edu/~howard/TIDE1840/ • Please, no food or drink! OOP thru Video Games - Harry Howard - Tulane University
Course organization • The SD card on my camera screwed up, and I lost a few photos. OOP thru Video Games - Harry Howard - Tulane University
Course organization • We have a budget of $75 per enrolled student: 12 x $75 = $900. • I suggest that we have dinner at Jacques-Imo’s some night • I will invite you to a Doodle poll to find an evening when most people can attend. OOP thru Video Games - Harry Howard - Tulane University
Dann, Cooper & Pausch §I.1 GETTING STARTED WITH ALICE OOP thru Video Games - Harry Howard - Tulane University
Exercises p. 19ff • Island • Winter • Snowpeople pile • Tea party • Soldiers on deck OOP thru Video Games - Harry Howard - Tulane University
Dann, Cooper & Pausch §I.2 PROGRAM DESIGN AND IMPLEMENTATION OOP thru Video Games - Harry Howard - Tulane University
Some terminology • Program • Instruction • Scenario • A statement of the problem or task that the animation addresses = requirement specification • Storyboard • Algorithm • Pseudocode OOP thru Video Games - Harry Howard - Tulane University
Steps to creating an animation • Read the scenario • Design • Implement • Test OOP thru Video Games - Harry Howard - Tulane University
Read the scenario • What questions does a scenario answer? • What story is to be told? • What objects are needed? • What actions take place? • Take 10 minutes to make up a scenario and then share it with the class. OOP thru Video Games - Harry Howard - Tulane University
Design • Create a storyboard • See example of a visual storyboard on the next page. • Each sketch is a snapshot of a scene, known as a state in computer science. • It helps to use a template, see slides10 and 11. • If making a visual storyboard is too time consuming, the alternative is to make a textual storyboard, see slide 12. OOP thru Video Games - Harry Howard - Tulane University
Example of a storyboard OOP thru Video Games - Harry Howard - Tulane University
Storyboard template OOP thru Video Games - Harry Howard - Tulane University
Scene Number: 1 Description The initial scene. Sound: None Text: None OOP thru Video Games - Harry Howard - Tulane University
The book’s example, p. 28 • Do the following steps in order • alien moves up • alien says “Slithy toves?” • robot’s head turns around • robot turns to look at alien • Do the following steps together • robot moves toward the alien • robot legs walk • etc. • Note that this looks like pseudocode. OOP thru Video Games - Harry Howard - Tulane University
Evaluate and revise • Does the action flow from scene to scene as the story unfolds? • Do any transitions need to be added to blend one scene to the next? • Did you overlook any part of the story? • Is there something about the story that should be changed? OOP thru Video Games - Harry Howard - Tulane University
Next time §I.3 PROGRAMMING: PUTTING THE PIECES TOGETHER