diff options
author | chai <chaifix@163.com> | 2018-11-21 21:12:42 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-21 21:12:42 +0800 |
commit | 07022c42a925d4d0c23ab31f0e75883766ce773a (patch) | |
tree | 5aa5fc533534ab987c954a30fa11fc124c50a755 /examples/animation/main.cpp | |
parent | f440f7fb52ca62715504e4a3c7076456de40f7b8 (diff) |
*动画系统
Diffstat (limited to 'examples/animation/main.cpp')
-rw-r--r-- | examples/animation/main.cpp | 4 |
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); } |