Introduction to game programming in Silverlight

Even with an initial release less than two years ago, a thriving community of game developers write games for the Silverlight platform. Still, the Flash platform probably employs the largest game developer community, so in order to help eager Silverlight game developers enter the fray, I will convert Kongregate’s Flash game programming tutorials to Silverlight. Like the rest of my Silverlight tutorials, these tutorials will not require you to install Visual Studio. And, while informative, the Kongregate tutorials (necessarily) don’t address the more advanced concepts in game programming ( i.e. multi-threaded game loops, 3D rendering, etc). I will attempt to address these topics and more in future Silverlight game programming tutorials. Read more

10 Minute Tutorial - Silverlight: Mouse button and scroll wheel event handling using managed code (C#)

Originally, I wanted this post to stand as the definitive tutorial on mouse handling in Silverlight. However, after researching all the different methods people use to handle the right mouse button and scroll wheel in Silverlight, I quickly gave up that pipe dream. Instead, this tutorial serves as merely a starting point for handling mouse events in Silverlight. If you can’t find what you need here, chances are, someone else has hacked together the solution you nedd. I provide links to a few of these solutions on my Silverlight Portal page.

So, for this tutorial, we will create a rectangle that you can drag using the left mouse button, resize using the scroll wheel and change its color using the right mouse button. Hopefully, this examle will give you a basic overview on how to handle mouse events in Silverlight.

With all that said, let’s get started. Read more

Silverlight 2 Released!

After months of waiting, wishing and hoping, Microsoft FINALLY released Silverlight 2.0 today. Given both the Betas and the RC releases, we all pretty much know what the official release contains, so I won’t go over it here. I will however give you some links to read more:

Mike Snow announces the release
Jessie Liberty has an excellent release guide
Scott Guthrie gives an overview off the Silverlight 2 goodness

One other thing: It looks like Microsoftl also supports developing Silverlight applications using Eclipse! Although the tutorials I write on this site will never require you to have an IDE, I am very excited by this news. Here’s a few more links on Silverlight with Eclipse to whet your appetite:

eclipse4sl Home Page
Silverlight development with Eclipse tutorial

More Silverlight tutorials on the way!