From 07022c42a925d4d0c23ab31f0e75883766ce773a Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 21 Nov 2018 21:12:42 +0800 Subject: =?UTF-8?q?*=E5=8A=A8=E7=94=BB=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/animation/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/animation') 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 frames = ss.createSprites(1, 19, 246, 238, Sprite::Origin::BottomCenter); + vector frames = ss.createSprites(1, 19, 246, 238, Origin::BottomCenter); anim.addFrames(frames); - anim.setSpeed(0.03); + anim.setSpeed(10); animator.setAnimation(&anim); } -- cgit v1.1-26-g67d0