aboutsummaryrefslogtreecommitdiff
path: root/bin/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bin/main.lua')
-rw-r--r--bin/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/main.lua b/bin/main.lua
index 7d3d4ae..a54235c 100644
--- a/bin/main.lua
+++ b/bin/main.lua
@@ -18,7 +18,7 @@ function jin.core.onLoad()
bitmap = nil
-- local ttfdata = jin.graphics.newTTFData("font_pixel.ttf")
-- ttf = ttfdata:newTTF(22);
- bitmap = jin.graphics.newBitmap("font2.png")
+ bitmap = jin.graphics.newBitmap(1,"font2.png")
tf = jin.graphics.newTextureFont(bitmap, [[<=>?.'^@abcdefghijklmnopqrstuvwxyz|~[\]_]], {255, 0, 0, 255}, 16)
end
@@ -50,6 +50,6 @@ end
function jin.core.onDraw()
jin.graphics.setColor(255, 255, 255)
jin.graphics.draw(sprites, 10, 10, 1, 1)
- jin.graphics.setFont(tf)
+ -- jin.graphics.setFont(tf)
jin.graphics.print("this is a demo")
end \ No newline at end of file