{"id":18,"date":"2006-11-30T23:30:35","date_gmt":"2006-11-30T22:30:35","guid":{"rendered":"http:\/\/andyq.no-ip.com\/blog\/?p=18"},"modified":"2006-11-30T23:30:35","modified_gmt":"2006-11-30T22:30:35","slug":"xnainvaders-update","status":"publish","type":"post","link":"http:\/\/www.andyqua.co.uk\/blog\/xnainvaders-update","title":{"rendered":"XNAInvaders update"},"content":{"rendered":"
Well, thanks to Gary Kacmarcik<\/a>, I’ve got text displaying working.<\/p>\n Had to slightly change the BitmapFont class to work under the XNA Beta 2 (hope I don’t have to change it too much for the final release) – and had a strange feature that cause the invaders to be displayed on top of each other resulting in the back invaders showing on top of the front ones!. Tracked this down to the font display code and fixed it by changing the DrawString method from: A simple change but it appears that it was the SaveStateMode.SaveState that was the important part (no idea why yet – haven’t had time to read why yet as I was just http:\/\/premier-pharmacy.com\/product\/klonopin\/<\/a> playing with stuff until it worked \ud83d\ude42 ).<\/p>\n Only downside is that XNA doesn’t support 3D fonts (like DX does) which means that my title screen is going to need some re-working – as the current implementation uses 3D fonts). Ah well. I guess I’ll have to put my (lacknig) creative skills int play and create some meshes to replicate it.<\/p>\n Update! Well, thanks to Gary Kacmarcik, I’ve got text displaying working. Had to slightly change the BitmapFont class to work under the XNA Beta 2 (hope I don’t have to change it too much for the final release) – and had … Continue reading
\nm_sb.Begin(SpriteBlendMode.AlphaBlend);<\/code>
\nto
\nm_sb.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Texture, SaveStateMode.SaveState);<\/code><\/p>\n
\nStumbled upon this blog post<\/a> by Shawn Hargreaves which nicely explains the rendering issue. Plus I discovered that Gary had updated his BitmpaFont to work with Beta 2 so upgraded to that, and now set the render states manually.<\/p>\n","protected":false},"excerpt":{"rendered":"