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
Related Posts:
Comments
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
Related Posts:
Comments
10 Minute Tutorial - Silverlight: Building a Silverlight application with MSBuild (C#)
“If you build it they will come”
Don’t know about that, but if you use MSBuild, it’ll sure make everyone’s life a hell of alot easier.
As of .NET 2.0, Microsoft provides developers with a build engine, called MSBuild, as part of the runtime distribution. In this tutorial, I will walk through hand-coding a MSBuild build file for the sample code of my application framework Silverlight tutorial. Read more
Related Posts:
Comments
10 Minute Tutorial - Silverlight: Using JavaScript to Call Scriptable Managed Code (C#)
My event handling tutorial walked through manipulating a Silverlight control using managed code. Today, we will learn how to access that managed code from JavaScript in an HTML page. The blandness of my last tutorial (a blue rectangle, whoopie) inspired me to spice things up for this tutorial and give you: animated, multi-color rectangles! Lacking the desire or the time to create the necessary XAML myself, I “borrowed” it from one of the samples embedded in the absolutely awesome SilverlightPad application.
Man, I hope that code is open source.
In addition to snazzy animations, the application for this tutorial will also contain a couple of form controls that will manipulate the Silverlight content at runtime. The first control, a simple drop down, will allow the user to select the number of rectangles displayed on the screen. The second form control will act as a pause/resume button for the animation.
Okay, let’s get started! Read more
Related Posts:
Comments
10 Minute Tutorial - Silverlight: Event handling using Managed Code (C#)
Managed code.
In the browser.
All my dreams have come true.
Well, not quite. Catherine Zeta-Jones and Lucy Liu still haven’t returned my calls. But, it’s a start!
I wrote this tutorial to illustrate how Silverlight communicates with managed code. So, as a simple example, we’ll use C# to handle click events inside of a rectangle rendered on a Silverlight control. And, like always, you can complete this tutorial sans-IDE, for those users who don’t want to install Visual Studio just to get a taste of Silverlight. Read more