Shawn Hargreaves' Blog

Game programming with the XNA Framework
0 comments
14 followers
101 entries
Advertisement
shawnhar
January 21, 2011
XNA Notes from George Clingerman
Not content with his role as the undoubtedly nicest and mostest politest of all XNA MVPs, George has started what looks to be a weekly roundup of news from the XNA community:

646 views
shawnhar
January 13, 2011
SpriteBatch billboards in a 3D world
A while ago I wrote about how to use SpriteBatch with a custom vertex shader, but didn't go into detail about how to set up matrices for drawing sprites in 3D.

The fundamentals are simple:

  • SpriteBatch generates vertex data containing Vector3 positions (plus texture coordinates and tint colors)…
1,036 views
shawnhar
January 04, 2011
XNA 3.1 to 4.0 cheat sheet
Nelxon Studio has a nice article about XNA version upgrade: http://www.nelxon.com/blog/xna-3-1-to-xna-4-0-cheatsheet/



Source
1,008 views
shawnhar
December 30, 2010
LCD response time
Regardless of whether you are developing for PC, Xbox 360, or Windows Phone, your game will most likely be viewed on some kind of LCD screen. An important characteristic of LCD technology is the response time, which measures how long pixels take to change color from black to white and then back to …
678 views
shawnhar
December 22, 2010
Why does ContentManager.Load or TitleContainer.OpenStream say file not found?
The simple answer is that the file you are trying to load must not actually exist in the location you are trying to load it from!

And yet people sometimes get stuck on this error, unable to open their file and with no idea how to figure out why this is failing. I suspect this is a side effect of t…
1,305 views
shawnhar
December 19, 2010
XNA book by my colleagues Tom and Dean
I have no idea how they managed to find time to do this at the same time as finishing up XNA Game Studio 4.0, but my colleagues Tom and Dean have written a most excellent book with the pithy title XNA Game Studio 4.0 Programming: Developing for Windows Phone and Xbox Live. Now in stock at Amazon, s…
693 views
shawnhar
December 16, 2010
Isolated storage, Windows, and ClickOnce
You want to implement save games.

You've decided to do this using isolated storage (perhaps because you are targeting Windows Phone, or because you want something simpler than the Xbox StorageContainer APIs).

But since XNA is so awesomely portable, you are also making a Windows version of your …
1,355 views
Advertisement
shawnhar
December 09, 2010
Reading files in XNA Game Studio 4.0
The XNA Framework provides no less than three different APIs for reading data out of files. This table attempts to explain the differences, and thus help you understand which to choose:

Title Container Isolated Storage Storage Container Purpose …
1,123 views
shawnhar
December 06, 2010
When WinForms met Game Loop
WinForms and XNA have quite different ideas about how a program should run.

XNA assumes that games are always in motion, moving and animating. It constantly cycles around the game loop, calling your Update and Draw methods. This is convenient for most games, but wasteful if the program reaches a s…
1,453 views
shawnhar
November 22, 2010
WinForms and the big red 'X' of doom
You are making a WinForms app. All is going well, until one day your custom control disappears. In its place you just see a big red cross:



What gives?

Let us back up to remind ourselves how exceptions work:

  • If your code does something wrong (such as dereferencing a null object or passi…
2,078 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
14 Followers
klg71
Generalist
57 Entries
2 Followers
ApochPiQ
Generalist
628 Entries
45 Followers
15 Entries
14 Followers
johnhattan
Programmer
1,277 Entries
50 Followers
Advertisement