Difference between revisions of "Game Programming Class9"

esse quam videri
Jump to: navigation, search
(Screen Manager)
(Strategy Pattern)
Line 24: Line 24:
  
 
==Strategy Pattern==
 
==Strategy Pattern==
 +
 +
My screen manager implements the strategy pattern.
  
 
http://www.dofactory.com/Patterns/PatternStrategy.aspx
 
http://www.dofactory.com/Patterns/PatternStrategy.aspx
 
  
 
==Screen Manager==
 
==Screen Manager==

Revision as of 19:13, 30 March 2009

Review Midterm Games

Inclass look @ 2d games

Stacks

c# stacks are LIFO

FIFO

First-In-First-Out

LIFO

Last-In-First-Out

pop

removed last object added to the stack

push

push an object onto the stack

peek

shows to top object on the stack

http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=65



Strategy Pattern

My screen manager implements the strategy pattern.

http://www.dofactory.com/Patterns/PatternStrategy.aspx

Screen Manager

In class demo IntroScreenz.zip

Homework

Add screen to 2D Game