|
@@ -52,8 +52,10 @@ int main() {
|
|
|
// Create an AnimationState to drive animations on the skeleton. Set the "portal" animation
|
|
|
// on track with index 0.
|
|
|
AnimationStateData animationStateData(skeletonData);
|
|
|
+ animationStateData.setDefaultMix(0.2f);
|
|
|
AnimationState animationState(&animationStateData);
|
|
|
animationState.setAnimation(0, "portal", true);
|
|
|
+ animationState.addAnimation(0, "run", true, 0);
|
|
|
|
|
|
// Create the renderer and set the viewport size to match the window size. This sets up a
|
|
|
// pixel perfect orthogonal projection for 2D rendering.
|