DexteR-Z Blogs

Friday, November 03, 2006

XNA Beta2 Framework flow

Alright, after installing XNA GSE Beta(2) and playing around with it,
converting my code from beta(1) and studying the flow of the new
framework, wondering what makes my code crazy.

Here's the sequenctial flow:

1. base.LoadGraphicsContent
2. base.Initialize
3. base.BeginRun
4. base.Update
5. base.BeginDraw
6. base.Draw
7. base.EndDraw
8. ... Update .. BeginDraw/Draw/EndDraw ... Update .. BeginDraw/Draw/EndDraw ..........

I think the initialize should comes first before LoadGraphicsContent,
some created their own loading routine with reference to the device
that needs to be initialize first. @ any rate it's not an issue since it is
very customizable to create your own initialization and content
loader routine for specific needs.

The above method sequencial call are just part of the main game
base, I did not test the rest and still exploring the new framework.

0 Comments:

Post a Comment

<< Home