From 1b25709b10cf92007096949f002b4941517eb749 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Nov 2018 08:42:31 +0800 Subject: =?UTF-8?q?*=E6=B3=A8=E5=86=8Clua=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/game/main.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/game/main.lua') diff --git a/bin/game/main.lua b/bin/game/main.lua index b8aa2cd..d268e23 100644 --- a/bin/game/main.lua +++ b/bin/game/main.lua @@ -59,7 +59,7 @@ local function createAnimation(path, count, r, c, w, h, loop, speed) local sprs = ssheet:newSprites(count, r, c, w, h, jin.graphics.SpriteOrigin.BOTTOMCENTER) return jin.graphics.newAnimation(sprs, loop, speed) end - +asd function jin.core.onLoad() bitmap = jin.graphics.newBitmap(200, 200, function(w, h, x, y) return {255*math.sin(x/w),255 - 255,255*math.cos(y/w),255} @@ -70,8 +70,7 @@ function jin.core.onLoad() tex = jin.graphics.newTexture(bitmap) local tex2 = jin.graphics.newTexture("anim.png") local ssheet2 = jin.graphics.newSpriteSheet(tex2) - sprs = ssheet2:newSprites(1, 19, 246, 238, jin.graphics.SpriteOrigin.BOTTOMCENTER) - local animation = createAnimation("anim2.png", 27, 3, 10, 200, 200, true, 20) + local animation = createAnimation("anim2.png", 27, 3, 10, 200, 200, true, 100) animator = jin.graphics.newAnimator(animation) animation = nil local ssheet = jin.graphics.newSpriteSheet(tex) -- cgit v1.1-26-g67d0