Allows the creation of animated moving 2D sprites with skeletons and bone animations. To use
this you will need a Spine license and Spine Creation tool from: http://esotericsoftware.com/
For details of how to use Spine within the Delta Engine see: http://deltaengine.net/spine
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Entities DrawableEntity
DeltaEngine.Rendering2D Entity2D
DeltaEngine.Rendering2D.Spine SpineSkeleton
Namespace: DeltaEngine.Rendering2D.Spine
Assembly: DeltaEngine.Rendering2D.Spine (in DeltaEngine.Rendering2D.Spine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The SpineSkeleton type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SpineSkeleton(String, String, Rectangle) | Initializes a new instance of the SpineSkeleton class | |
SpineSkeleton(String, String, Vector2D) | Initializes a new instance of the SpineSkeleton class |
Methods
Extension Methods
Name | Description | |
---|---|---|
AffixToPhysics | (Defined by Entity2DPhysicsExtensions.) | |
StartBouncingOffScreenEdges | (Defined by Entity2DExtensions.) | |
StartFalling | (Defined by Entity2DExtensions.) | |
StartMoving | (Defined by Entity2DExtensions.) | |
StartRotating | (Defined by Entity2DExtensions.) |
Fields
Name | Description | |
---|---|---|
components | (Inherited from Entity.) | |
lastTickLerpComponents |
Each element can either be a Lerp, a Lerp List or an array of Lerp objects.
View code on GitHub (Inherited from DrawableEntity.) |
Properties
Name | Description | |
---|---|---|
Alpha | (Inherited from Entity2D.) | |
Center | (Inherited from Entity2D.) | |
Color | (Inherited from Entity2D.) | |
DidFootprintChange | (Inherited from Entity2D.) | |
DrawArea | (Inherited from Entity2D.) | |
FlipMode | ||
IsActive | (Inherited from DrawableEntity.) | |
IsPauseable | (Inherited from Entity.) | |
IsVisible | (Inherited from DrawableEntity.) | |
LastColor | (Inherited from Entity2D.) | |
LastDrawArea | (Inherited from Entity2D.) | |
LastOriginAndScale | ||
NumberOfComponents | (Inherited from Entity.) | |
Origin | ||
OriginAndScale | ||
RenderLayer | (Inherited from DrawableEntity.) | |
Rotation | (Inherited from Entity2D.) | |
RotationCenter | (Inherited from Entity2D.) | |
Scale | ||
Size | (Inherited from Entity2D.) | |
TopLeft | (Inherited from Entity2D.) | |
UpdatePriority | (Inherited from Entity.) |
Remarks
Examples
[Test, ApproveFirstFrameScreenshot] public void DrawSpineboyWalkingToRightEdge() { spineboy.DefineAnimationMix("walk", "jump", 0.2f); spineboy.DefineAnimationMix("jump", "walk", 0.4f); new Command(Jump).Add(new MouseButtonTrigger()); spineboy.Start<Moving>(); new FontText(Font.Default, "Click mouse to make Spineboy jump", Rectangle.FromCenter(0.5f, 0.25f, 1.0f, 0.1f)); }
[Test] public void DrawSpineboyWalkingLeft() { Assert.AreEqual(FlipMode.None, spineboy.FlipMode); spineboy.Origin = new Vector2D(0.5f, 0.7f); spineboy.FlipMode = FlipMode.Horizontal; Assert.AreEqual(FlipMode.Horizontal, spineboy.FlipMode); }
[Test] public void DrawUpsideDownSpineboyWalkingRight() { spineboy.Origin = new Vector2D(0.5f, 0.3f); spineboy.FlipMode = FlipMode.Vertical; Assert.AreEqual(FlipMode.Vertical, spineboy.FlipMode); }
See Also