diff options
Diffstat (limited to 'bin/game')
-rw-r--r-- | bin/game/main.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/game/main.lua b/bin/game/main.lua index fd54a7d..2cc8bcc 100644 --- a/bin/game/main.lua +++ b/bin/game/main.lua @@ -130,6 +130,7 @@ function jin.core.onUpdate(dt) ps:update(dt) local mx, my = jin.mouse.getPosition() ps:setPosition(mx, my) + ps:setEmitDirection(t - 0.3, t + 0.3) end function jin.core.onDraw() @@ -140,8 +141,8 @@ function jin.core.onDraw() jin.graphics.unuseShader() --jin.graphics.draw(sprs[2], 150, 150, 1, 1, 0) local x, y = jin.mouse.getPosition() - animator:render(50, 150, 1, 1, 0) - --jin.graphics.print(#sprs, 10, 10) + animator:render(350, 150, 1, 1, 0) + jin.graphics.print("* Particle system test\n* Animation test", 10, 10) jin.graphics.draw(spr, 100, 200, 1, 1, 0) --jin.graphics.useShader(shader_program2) --jin.graphics.draw(tex, 0, 0,0.2, 0.2) |