A first program Sept 14, 2010 – Day 3 Object-oriented Programming thru Video Games TIDE 1840 Harry...
-
Upload
dennis-frank-bailey -
Category
Documents
-
view
214 -
download
0
Transcript of A first program Sept 14, 2010 – Day 3 Object-oriented Programming thru Video Games TIDE 1840 Harry...
![Page 1: A first program Sept 14, 2010 – Day 3 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/1.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/2.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/3.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/4.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/5.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/6.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/7.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/8.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/9.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/10.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/11.jpg)
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 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.](https://reader031.fdocuments.net/reader031/viewer/2022032607/56649ed95503460f94be7cee/html5/thumbnails/12.jpg)
§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