A first program Sept 14, 2010 – Day 3
description
Transcript of 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
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
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
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
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
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
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
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
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
Other conceptsOther conceptsNestingComments
9/14/10 OOP thru Video Games - Harry Howard - Tulane University 10
EXERCISES 2-2EXERCISES 2-2p. 59ff
9/14/10 OOP thru Video Games - Harry Howard - Tulane University 11
§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