aboutsummaryrefslogtreecommitdiff
path: root/bin/game
diff options
context:
space:
mode:
Diffstat (limited to 'bin/game')
-rw-r--r--bin/game/main.lua5
1 files changed, 2 insertions, 3 deletions
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)