Monday
Dec292008
Back at Work

Number one wife was back at work today. I felt kind of bad about this, and so as a gesture of solidarity I got up with her, had breakfast and spent the entire day writing some XNA stuff. Which turned out to be great fun.


in
Life

Reader Comments (2)
As soon as I do i'll have Pong up and running before you can say, "Halo 3 is a good game!".
To center a sprite:
sprite.Draw(texture,
new Rectangle(GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width / 2 - (texture.Width / 2), GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height / 2 - (texture.Height / 2),
texture.Width,
texture.Height),
Color.White);