O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—creating User Control classes to hold images

A sprite is a 2D image (a bitmap) that provides movement and animation capabilities, and is integrated into a scene. A sprite represents a game character capable of moving through the scene and interacting with other sprites. However, using Silverlight 3, we can also use vector-based illustrations as sprites for our games.

First, we will transform some raster-based aliens to User Controls. Then, we will be able to control their movements like sprites:

  1. Create a new C# project using the Silverlight Application template. Use SilverlightInvaders2D as the project's name.
  2. Create a new folder in SilverlightInvaders2D (the main project that will generate the XAP output file). Rename it to images ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required