SCG Community

Solar Vengeance 5

WinWar II 5

Proliferation 2

Ceres, Inc.

Game Development Tools

Contact

External Links

TurboSprite Components for .NET

TurboSprite is a simple 2D sprite and animation engine written entirely in C# managed code.  It is the animation engine for the newest versions of Silicon Commander Games, like Solar Vengeance 5.  TurboSprite exposes the sprite engine as a component with simple properties, methods and events.

We offer the TurboSprite component suite as open-source freeware.

Download TurboSprite Build 5.0.1.0 C# source code and binaries

TurboSprite Components

The download includes a Visual Studio 2008 project file with 2 projects.  The first project builds the SCG.TurboSprite class library, which contains the following components (and more).

SpriteSurface

  • The main rendering surface where sprite are drawn and other animations effects occur.  You have several places to control the animation cycle via properties, and hook in via events to perform your own custom rendering.

SpriteEngine

  • These non-visual components contain Sprites that will be drawn on the SpriteSurface.  Derived classes can also control Sprites' movement.  One derived class included in the package is SpriteEngineDestination, which allows you to move a Sprite to a specific destination at a variable speed.  SpriteEngines also test for collisions between Sprites, and report these back to you via events.

Sprite

  • An abstract base class that represents an object that can be drawn and moved on a SpriteSurface.  You derive classes and override the "Render" method to specify how the Sprite should be drawn.  TurboSprite contains many derived classes to get you started, including:

    • BitmapSprite - Renders itself via a Bitmap.

    • AnimatedBitmapSprite - Uses a Bitmap as frames of animation.

    • PolygonSprite - Renders itself as a drawn or filled polygon, and supports rotation.

    • ParticleExplosionSprite - An explosive effect.

    • ShockwaveSprite - Another explosive effect.

SpriteSurfaceNavigator

  • SpriteSurfaces can be assigned a virtual size, so that at any given time only a portion of their visible area is displayed.  The SpriteSurfaceNavigator component provides an easy way to click and navigate the visible viewport around within a large SpriteSurface.

CompassNavigator

  • Another way to scroll around within the virtual size of a SpriteSurface, this time by clicking and dragging the mouse within the quadrants of a compass.

Demo Project

The download also includes a demo project that allows you to create instances of all of the Sprites and see them bounce around a SpriteSurface.

More Info