VERSIÓ 1.4.6
-[NEW] font.load() -[NEW] font.current() -[NEW] font.spacing() -[NEW] font.DEFAULT -[NEW] surf.SCREEN
This commit is contained in:
9
data/font.fnt
Normal file
9
data/font.fnt
Normal file
@@ -0,0 +1,9 @@
|
||||
bitmap=font.gif
|
||||
48: 0 0 7 7 0 # 0
|
||||
49: 8 0 4 7 0 # 1
|
||||
50: 16 0 7 7 0 # 2
|
||||
51: 24 0 7 7 0 # 3
|
||||
52: 32 0 7 7 0 # 4
|
||||
53: 40 0 7 7 0 # 5
|
||||
54: 48 0 7 7 0 # 6
|
||||
55: 56 0 7 7 0 # 7
|
||||
BIN
data/font.gif
Normal file
BIN
data/font.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 179 B |
@@ -16,6 +16,7 @@ function mini.init()
|
||||
end
|
||||
print("========================")
|
||||
|
||||
f = font.load("font.fnt")
|
||||
end
|
||||
|
||||
function mini.update()
|
||||
@@ -42,4 +43,9 @@ function mini.update()
|
||||
draw.rectf(mx, my, 4, 4, 8)
|
||||
draw.text(mx .. " " .. my, 1, 8, 8)
|
||||
--draw.text(other.peiv(),1,100,4)
|
||||
|
||||
font.current(f)
|
||||
font.spacing(0)
|
||||
draw.text("0146",100,50,28)
|
||||
font.current(font.DEFAULT)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user