aboutsummaryrefslogtreecommitdiff
path: root/bin/game/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bin/game/main.lua')
-rw-r--r--bin/game/main.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/game/main.lua b/bin/game/main.lua
index 9070d2c..8ff5e68 100644
--- a/bin/game/main.lua
+++ b/bin/game/main.lua
@@ -61,9 +61,9 @@ local function createAnimation(path, count, r, c, w, h, loop, speed)
end
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)
+ -- 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)
shader_program = jin.graphics.newShader(shader)
shader_program2 = jin.graphics.newShader(shader2)
local animation = createAnimation("anim2.png", 27, 3, 10, 200, 200, true, 50)
@@ -113,12 +113,12 @@ function jin.core.onDraw()
--jin.graphics.draw(sprs[2], 150, 150, 1, 1, 0)
local x, y = jin.mouse.getPosition()
animator:render(x, y, 1, 1, 0)
- jin.graphics.print(#sprs, 10, 10)
+ --jin.graphics.print(#sprs, 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)
--jin.graphics.unuseShader()
if stop then
- jin.graphics.print("Quit", 100, 300)
+ --jin.graphics.print("Quit", 100, 300)
end
end \ No newline at end of file