From cfa05003be67344fbc79c338c2ac82f0accd979d Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Nov 2018 16:15:48 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9argc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/animation/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/animation/main.cpp') 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 frames = ss.createSprites(1, 19, 246, 238, Origin::BottomCenter); + vector frames = ss.createSprites(19, 1, 19, 246, 238, Origin::BottomCenter); anim.addFrames(frames); anim.setSpeed(10); animator.setAnimation(&anim); -- cgit v1.1-26-g67d0