A first program Sept 14, 2010 – Day 3

12
A first program A first program Sept 14, 2010 – Day 3 Sept 14, 2010 – Day 3 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University

description

A first program Sept 14, 2010 – Day 3. 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. - PowerPoint PPT Presentation

Transcript of A first program Sept 14, 2010 – Day 3

Page 1: A first program Sept 14, 2010 – Day 3

A first programA first programSept 14, 2010 – Day 3Sept 14, 2010 – Day 3Object-oriented Programming thru Video GamesTIDE 1840Harry HowardTulane University

Page 2: A first program Sept 14, 2010 – Day 3

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

TIDE1840/Please, no food or drink!

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

Page 3: A first program Sept 14, 2010 – Day 3

Course organizationCourse organizationThe SD card

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

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

Page 4: A first program Sept 14, 2010 – Day 3

Course organizationCourse organizationWe have a

budget of $75 per enrolled student: 12 x $75 = $900.

http://www.doodle.com/pnsrdq94494mhbr8

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

Page 5: A first program Sept 14, 2010 – Day 3

A FIRST PROGRAMA FIRST PROGRAMDann, Cooper & Pausch §I.2.2, pp. 29-43

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

Page 6: A first program Sept 14, 2010 – Day 3

Getting startedGetting startedWhat is a program?Create an initial scene

◦Space template + SciFi > spiderRobot, alienOnWheels, lunarLander + Nature > rocks

◦All the worlds for the examples in the book are on the CD, but not the code that makes stuff happen.

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

Page 7: A first program Sept 14, 2010 – Day 3

ProgrammingProgrammingProgram code editor

◦the bottom right window◦defaults to World.my first method

Our story◦expand textual storyboard as on p.

31 & convert to flowchart p. 32◦translate the storyboard to program

code

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

Page 8: A first program Sept 14, 2010 – Day 3

Control statements, Control statements, methods, arguments, methods, arguments, propertiespropertiesDo in order, Do togethermove, turn to face, say, orient to,

point at, move toduration, style, asSeenBy,

onlyAffectYawvehicle

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

Page 9: A first program Sept 14, 2010 – Day 3

ORIENTATION & ORIENTATION & MOVEMENT MOVEMENT INSTRUCTIONSINSTRUCTIONS

Tips & techniques 2Dann, Cooper & Pausch §I.2.2, pp. . 43-57

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

Page 10: A first program Sept 14, 2010 – Day 3

Other conceptsOther conceptsNestingComments

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

Page 11: A first program Sept 14, 2010 – Day 3

EXERCISES 2-2EXERCISES 2-2p. 59ff

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

Page 12: A first program Sept 14, 2010 – Day 3

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

Next time

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