From ec6920656d8225538baaac677b62aa564fc1055e Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 7 Dec 2018 11:46:49 +0800 Subject: *particle system demo --- bin/SDL2.dll | Bin 1279488 -> 1242112 bytes bin/game/main.lua | 3 +-- bin/jin.exe | Bin 554496 -> 1703424 bytes bin/lua51.dll | Bin 364544 -> 364544 bytes 4 files changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/SDL2.dll b/bin/SDL2.dll index 0b08ce2..47c1b1e 100644 Binary files a/bin/SDL2.dll and b/bin/SDL2.dll differ diff --git a/bin/game/main.lua b/bin/game/main.lua index 6851c45..8de71f1 100644 --- a/bin/game/main.lua +++ b/bin/game/main.lua @@ -62,12 +62,11 @@ local function createAnimation(path, count, r, c, w, h, loop, speed) return jin.graphics.newAnimation(sprs, loop, speed) end local Pi = 3.1415 -local tex = nil 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} -- end) - tex = jin.graphics.newTexture("particle.png") + local tex = jin.graphics.newTexture("particle.png") particle_sprite = jin.graphics.newSprite(tex, jin.graphics.SpriteOrigin.MIDDLECENTER) ps = jin.graphics.newParticleSystem() diff --git a/bin/jin.exe b/bin/jin.exe index c74c8b7..fffa828 100644 Binary files a/bin/jin.exe and b/bin/jin.exe differ diff --git a/bin/lua51.dll b/bin/lua51.dll index 88d71ef..4857c1e 100644 Binary files a/bin/lua51.dll and b/bin/lua51.dll differ -- cgit v1.1-26-g67d0