Introduction

If you haven’t read the first two parts of this series, I encourage you to read those. At least have a quick browse so that you know where we left off.

At the end of part 2 we created a sprite for our spaceship and launched it into space. However it’s engine is not responding to our commands and it’s just floating in space motionless and silent.

Let’s learn how we can use the keyboard to control the spaceship. Download the source code for part 2 and open it up in Visual Studio.

Let’s kick start the spaceship’s engine…

Read the rest of this entry »

Advertisements

Introduction

In part 1 of this series we covered how you can easily set up a main game loop that fires an event each time a frame needs to be rendered.

By attaching an event handler to this event you can take the necessary steps to render all of your game elements or sprites onto the screen (game surface).

Take a quick look at the first part if you haven’t done this already:

Silverlight Asteroids Part 1: Game Loop

Download the source code for part 1, unzip the package and start up the solution in Visual Studio. We’ll pick up where we left last time.

This articles focuses on implementing a base class for all of the sprites that will be used in the game. Once that is done, we’ll launch our spaceship into action!

Let’s get started…

Read the rest of this entry »

Introduction

About two weeks ago I bought a book about game development with Microsoft Silverlight. The first few chapters dealt with the creation of 2D games. The example illustrated in the book was Space Invaders.

After having read these chapters, I had a go at recreating another old arcade game, namely Asteroids. If you bing Silverlight Asteroids you’ll find a few other implementations of the game. This is the first part of a multi-part series that explains how I went about recreating the game using Silverlight 3 and Visual Studio 2008.

Remark: Silverlight 4 was released earlier this week, check it out if you haven’t already. You’ll need the released version of Visual Studio 2010 for Silverlight 4 development.

The sample code for this article was developed using Silverlight 3 and Visual Studio 2008, but it should work fine if you are already using the newer version. Beware that there are some issues if you try to install Visual Studio 2010 if you already have the Silverlight 3 SDK installed.

So let’s get started by laying the foundation for the game…

Read the rest of this entry »