code / tomo-lost-signal

Lines522 Tomo498 Markdown11 make10
1 others 3
INI3
(8 lines)
1 # An object that represents a letter of text on the map
3 use ./raylib.tm
5 struct Letter(string:CString, pos:Vector2, color=Color(0xff,0xff,0x66,0xcc), size=Int32(30))
6 func draw(l:Letter)
7 w := MeasureText(l.string, l.size)
8 DrawText(l.string, Int32(l.pos.x, yes) - w/2, Int32(l.pos.y, yes), l.size, l.color)