aboutsummaryrefslogtreecommitdiff
path: root/examples/animation/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/animation/main.cpp')
-rw-r--r--examples/animation/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/animation/main.cpp b/examples/animation/main.cpp
index 741385a..7d85c77 100644
--- a/examples/animation/main.cpp
+++ b/examples/animation/main.cpp
@@ -41,9 +41,9 @@ void onLoad()
tex = Texture::createTexture("anim.png");
shader = Shader::createShader(shader_code);
SpriteSheet ss = SpriteSheet(tex);
- vector<Sprite*> frames = ss.createSprites(1, 19, 246, 238, Sprite::Origin::BottomCenter);
+ vector<Sprite*> frames = ss.createSprites(1, 19, 246, 238, Origin::BottomCenter);
anim.addFrames(frames);
- anim.setSpeed(0.03);
+ anim.setSpeed(10);
animator.setAnimation(&anim);
}