Difference between revisions of "Game Programming Class9"
esse quam videri
Line 3: | Line 3: | ||
==Stacks== | ==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 | ||
+ | |||
Revision as of 19:12, 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
Screen Manager
In class demo IntroScreenz.zip
Homework
Add screen to 2D Game