Top Banner
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
12

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

Jan 02, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A first program Sept 14, 2010 – Day 3 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

§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