17
Program design and Program design and implementation implementation Sept 7, 2010 – Day 2 Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University

Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Embed Size (px)

DESCRIPTION

Course organization The SD card on my camera screwed up, and I lost a few photos. 9/7/10OOP thru Video Games - Harry Howard - Tulane University 3

Citation preview

Page 1: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Program design and Program design and implementationimplementationSept 7, 2010 – Day 2Sept 7, 2010 – Day 2Object-oriented Programming thru Video GamesTIDE 1840Harry HowardTulane University

Page 2: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Course organizationCourse organizationhttp://www.tulane.edu/~howard/

TIDE1840/Please, no food or drink!

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 2

Page 3: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Course organizationCourse organizationThe SD card

on my camera screwed up, and I lost a few photos.

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 3

Page 4: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Course organizationCourse organizationWe 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.

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 4

Page 5: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

GETTING STARTED GETTING STARTED WITH ALICEWITH ALICE

Dann, Cooper & Pausch §I.1

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 5

Page 6: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Exercises p. 19ffExercises p. 19ffIslandWinterSnowpeople pileTea partySoldiers on deck

8/23/10 OOP thru Video Games - Harry Howard - Tulane University 6

Page 7: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

PROGRAM DESIGN PROGRAM DESIGN AND AND IMPLEMENTATIONIMPLEMENTATION

Dann, Cooper & Pausch §I.2

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 7

Page 8: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Some terminologySome terminologyProgramInstructionScenario

◦A statement of the problem or task that the animation addresses = requirement specification

StoryboardAlgorithmPseudocode

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 8

Page 9: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Steps to creating an Steps to creating an animationanimation1. Read the scenario2. Design3. Implement4. Test

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 9

Page 10: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Read the scenarioRead the scenarioWhat 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.

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 10

Page 11: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

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

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 11

Page 12: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Example of a storyboardExample of a storyboard

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 12

Page 13: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Storyboard template

Storyboard template

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 13

Page 14: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Scene Number: 1Scene Number: 1

Sound: NoneText: None

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 14

DescriptionThe initial scene.

Page 15: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

The book’s example, p. 28The book’s example, p. 28Do 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.9/7/10 OOP thru Video Games - Harry Howard - Tulane University 15

Page 16: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

Evaluate and reviseEvaluate and reviseDoes 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?

9/7/10 OOP thru Video Games - Harry Howard - Tulane University 16

Page 17: Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games…

§I.3 PROGRAMMING: §I.3 PROGRAMMING: PUTTING THE PIECES PUTTING THE PIECES TOGETHERTOGETHER

Next time