aboutsummaryrefslogtreecommitdiff
path: root/examples/animation/main.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-22 16:15:48 +0800
committerchai <chaifix@163.com>2018-11-22 16:15:48 +0800
commitcfa05003be67344fbc79c338c2ac82f0accd979d (patch)
tree3ed1fa8cdeaf6210b1fd6271f28af24ab41ee55a /examples/animation/main.cpp
parenta0a1e1609fd65c2fe103cfe5a4532b7ccd492c7f (diff)
*修改argc
Diffstat (limited to 'examples/animation/main.cpp')
-rw-r--r--examples/animation/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/animation/main.cpp b/examples/animation/main.cpp
index 7d85c77..b5ad60f 100644
--- a/examples/animation/main.cpp
+++ b/examples/animation/main.cpp
@@ -41,7 +41,7 @@ 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, Origin::BottomCenter);
+ vector<Sprite*> frames = ss.createSprites(19, 1, 19, 246, 238, Origin::BottomCenter);
anim.addFrames(frames);
anim.setSpeed(10);
animator.setAnimation(&anim);