Rotating Sprite - ArturoNereu/TinyCookbook GitHub Wiki

RotatingSprite

One of the simplest transformations we can apply to an object (besides translating) is the rotation. Achieving this with Tiny is very simple.

  1. Create a new Component named Rotate. The component definition should be similar to our example here.

  2. Add the Rotate Component to the Entity you want to rotate.

  3. Create a new C# System named RotationSystem in your Tiny project. For a basic rotation around the entity's center, see this system.