Friday, December 28, 2007

HOW TO: XNA-BASED GAME ON A WEBPAGE

For those of you interested in my article ("Xna & Beyond"), I have -what I consider- an interesting update (btw, don't forget to vote for my article since it's on a compo!).

You may remember that I was trying to investigate how to use the Silverlight technology with XNA. The bad news is that v1.1_alpha does not allow to host WinForms controls; the good news is that v2 -the new name for the final release of v1.1- will do!

I didn't want to wait so thinking more on the problem, I remembered how to embed an .NET assembly into a web page. Digging further into the subject I finally succeded. Read the section The "Silverlight" At The End Of The Tunnel for details and also download the new sample code.

A strong word of warning here: the new example code provided in the article is for learning purposes only. So do not recommend -as I don't recommend it- anyone to modify his/her machine's security giving full trust to any assemblies or websites since it could open the door for security risks.

Maybe I should start and hold a project at CodePlex. I don't know ... we shall see ;)

Well, enjoy!