diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Jin.exe | bin | 477696 -> 477696 bytes | |||
-rw-r--r-- | bin/font2.png | bin | 3349 -> 2758 bytes | |||
-rw-r--r-- | bin/jin.exe | bin | 477696 -> 477696 bytes | |||
-rw-r--r-- | bin/main.lua | 4 |
4 files changed, 3 insertions, 1 deletions
diff --git a/bin/Jin.exe b/bin/Jin.exe Binary files differindex 02ebb92..454385e 100644 --- a/bin/Jin.exe +++ b/bin/Jin.exe diff --git a/bin/font2.png b/bin/font2.png Binary files differindex 6c9a375..6083ab6 100644 --- a/bin/font2.png +++ b/bin/font2.png diff --git a/bin/jin.exe b/bin/jin.exe Binary files differindex 02ebb92..454385e 100644 --- a/bin/jin.exe +++ b/bin/jin.exe diff --git a/bin/main.lua b/bin/main.lua index 338287a..d0ba056 100644 --- a/bin/main.lua +++ b/bin/main.lua @@ -18,6 +18,8 @@ function jin.core.onLoad() bitmap = nil local ttfdata = jin.graphics.newTTFData("font_pixel.ttf") ttf = ttfdata:newTTF(22); + bitmap = jin.graphics.newBitmap("font2.png") + tf = jin.graphics.newTextureFont(bitmap, [[<=>?.'^@abcdefghijklmnopqrstuvwxyz|~[\]_]], {255, 0, 0, 255}, 16) end function jin.core.onEvent(e) @@ -48,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(ttf) + jin.graphics.setFont(tf) jin.graphics.print("this is a demo") end
\ No newline at end of file |