Home | Features | Roadmap | Learn | Documentation | ||
Latest version: Tramway SDK 0.0.9 Github Quick links Home Get Started |
Sprite ComponentThis EntityComponent displays a sprite. If the spritesheet contains multiple sprites, it's possible to play them as an animation. Very neat! Programming in C++
To get started, construct the component, feed it a sprite and set its location. It might take a few moments for the sprite to be streamed in.
Component<SpriteComponent> component;
If you want to play the spritesheet as an animation.
component->SetPlaySpeed(2);
Scripting in LuaEventually it will be finished, but might take some time. |
|
|