code / tomo-game

Lines231 Tomo187 Text18 Markdown16 make10
(7 lines)
1 # Defines a struct representing boxes on the terrain
2 use ./world.tm
3 use ./raylib.tm
5 struct Box(pos:Vector2, size=Vector2(50, 50), color=Color(0x80,0x80,0x80))
6 func draw(b:Box)
7 DrawRectangleV(b.pos, b.size, b.color)