aboutsummaryrefslogtreecommitdiff
path: root/bin/game/main.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-09 18:26:17 +0800
committerchai <chaifix@163.com>2018-12-09 18:26:17 +0800
commitb1dfdae7a071407ef5e2d56f2203f96e6ba6068d (patch)
treeb26bbed65fd0074178066de89bb197bb2176305b /bin/game/main.lua
parent7069a62a7984feff85a37f60c67e2a7624241841 (diff)
*misc
Diffstat (limited to 'bin/game/main.lua')
-rw-r--r--bin/game/main.lua5
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)