120 likes | 228 Views
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.
E N D
A first programSept 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! OOP thru Video Games - Harry Howard - Tulane University
Course organization • The SD card on my camera screwed up, and I lost a few photos. OOP thru Video Games - Harry Howard - Tulane University
Course organization • We have a budget of $75 per enrolled student: 12 x $75 = $900. • http://www.doodle.com/pnsrdq94494mhbr8 OOP thru Video Games - Harry Howard - Tulane University
Dann, Cooper & Pausch §I.2.2, pp. 29-43 A FIRST PROGRAM OOP thru Video Games - Harry Howard - Tulane University
Getting started • What 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. OOP thru Video Games - Harry Howard - Tulane University
Programming • Program 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 OOP thru Video Games - Harry Howard - Tulane University
Control statements, methods, arguments, properties • Do in order, Do together • move, turn to face, say, orient to, point at, move to • duration, style, asSeenBy, onlyAffectYaw • vehicle OOP thru Video Games - Harry Howard - Tulane University
Tips & techniques 2 Dann, Cooper & Pausch §I.2.2, pp. . 43-57 ORIENTATION & MOVEMENT INSTRUCTIONS OOP thru Video Games - Harry Howard - Tulane University
Other concepts • Nesting • Comments OOP thru Video Games - Harry Howard - Tulane University
p. 59ff EXERCISES 2-2 OOP thru Video Games - Harry Howard - Tulane University
Next time §I.3 PROGRAMMING: PUTTING THE PIECES TOGETHER OOP thru Video Games - Harry Howard - Tulane University