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

Preview:

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

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

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

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

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

GETTING STARTED GETTING STARTED WITH ALICEWITH ALICE

Dann, Cooper & Pausch §I.1

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

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

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

PROGRAM DESIGN PROGRAM DESIGN AND AND IMPLEMENTATIONIMPLEMENTATION

Dann, Cooper & Pausch §I.2

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

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

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

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

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

Example of a storyboardExample of a storyboard

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

Storyboard template

Storyboard template

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

Scene Number: 1Scene Number: 1

Sound: NoneText: None

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

DescriptionThe initial scene.

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

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

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

Next time

Recommended