blob: 41ae10e53649024d8ececadf1e22359421d2380c (
plain)
1
2
3
4
5
6
7
|
# Defines a struct representing boxes on the terrain
use ./world.tm
use ./raylib.tm
struct Box(pos:Vector2, size=Vector2(50, 50), color=Color(0x80,0x80,0x80))
func draw(b:Box)
DrawRectangleV(b.pos, b.size, b.color)
|