Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


XNA 4.0 Workshop - Week 1 (Ch. 1-3)

  • This topic is locked This topic is locked
24 replies to this topic

#21 dwarfsoft   Moderators   -  Reputation: 1217

Like
0Likes
Like

Posted 17 January 2011 - 06:28 PM

http://www.amazon.co.../dp/0672330229/


If you get the Kindle Edition (so you can start reading now) you can get the CD Contents for sale from XNA Essentials for US$4.50 (you can download all the source updates for free but they rely on the original CD code)

Sponsor:

#22 JWalsh   Moderators   -  Reputation: 463

Like
1Likes
Like

Posted 17 January 2011 - 06:33 PM

If you're coming here without having signed up for the workshop, or without being aware of the associated blog, please see the introductory thread located in the XNA 4.0 Workshop General Forum.

Also, I've now added up-to-date source code for Chapter 2 and Chapter 3 of the XNA Game Studio 3.0 Unleashed book. This code works with XNA Game Studio 4.0 and in many cases, I've added the addition of a WinPhone 7 project file - which wasn't in the original solution.

Post if you have questions.

In the mean time, there was only a few changes required to get the original code working. The first was the removal of the Net and Storage using statements. Those are added by default in most non-WinPhone 7 projects, however there is no reference implementation for those assemblies for Windows Phone. Programmers will use IsolatedStorage to write data to the WinPhone 7 and Networking is disabled without a special license.

The next change, as indicated in my supplemental material on GameTime, is a result of Microsoft removing the ElapsedRealTime and TotalRealTime members from the GameTime struct. This was done because Microsoft felt it was confusing to the users to have GameTime and RealTime in the same struct, and they felt there were already good ways of getting elapsed and total real time. Of those is the DateTime class which has millisecond precision. I chose to go that route. To keep with the spirit of the demo I use DateTime to cache the time the application was started, and then compute the elapsed real time in between each call to Draw.

Note: It's bad practice to put game logic inside of Draw. We'll talk more about predicated tiling later, but especially with fixed step games and on the Xbox 360, it's important to make sure all relevant game logic is put within the Update method - otherwise it may be processed more or less times than desired.
Jeromy Walsh
Sr. Tools & Engine Programmer | Software Engineer
Microsoft Windows Phone Team
Chronicles of Elyria (An In-development MMORPG)
GameDevelopedia.com - Blog & Tutorials
GDNet Mentoring: XNA Workshop | C# Workshop | C++ Workshop
"The question is not how far, the question is do you possess the constitution, the depth of faith, to go as far as is needed?" - Il Duche, Boondock Saints

#23 toddworld   Members   -  Reputation: 100

Like
0Likes
Like

Posted 17 January 2011 - 06:58 PM


Sorry if I missed it up above but I don't see it anywhere....what was the name and author of the book again?

Thanks,
Todd


http://www.amazon.co.../dp/0672330229/


Thank you sir.




#24 s0ccaman   Members   -  Reputation: 122

Like
0Likes
Like

Posted 17 January 2011 - 07:26 PM

For anyone that's interested and may need a refresher or intro to C#. There is a freely available PDF form Charles Petzold available on his blog site.




http://www.charlespetzold.com/dotnet/index.html




I read it awhile ago, but haven't kept up with C# to know if there are many changes since it was last update in '07. Still a good read, me thinks.




Hope it helps


"An intelligent man speaks and then listens, a wise man listens and then speaks."

#25 JWalsh   Moderators   -  Reputation: 463

Like
0Likes
Like

Posted 17 January 2011 - 07:30 PM

Hi All,

I'm going to go ahead and lock this thread. Not because I don't want questions, comments, etc... but because I want you all to create new threads in this forum so that each topic can be individually addressed and responded to.

We've got an entire set of forums all to ourselves. Might as well use them. :)
Jeromy Walsh
Sr. Tools & Engine Programmer | Software Engineer
Microsoft Windows Phone Team
Chronicles of Elyria (An In-development MMORPG)
GameDevelopedia.com - Blog & Tutorials
GDNet Mentoring: XNA Workshop | C# Workshop | C++ Workshop
"The question is not how far, the question is do you possess the constitution, the depth of faith, to go as far as is needed?" - Il Duche, Boondock Saints





PARTNERS