blob: acff269e5ed0026ab1f16d07e804e278df656174 (
plain)
1
2
3
4
5
6
7
8
9
|
# Defines a struct representing boxes on the terrain
use vectors
use ./world.tm
use ./color.tm
struct Box(pos:Vec2, size=Vec2(50, 50), color=Color.GRAY, blocking=yes):
func draw(b:Box):
b.color:draw_rectangle(b.pos, b.size)
|