From f33b7048d7f1255a4f9c04057340f2c71d6fb982 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 8 Sep 2024 20:25:06 -0400 Subject: Turn into map --- examples/game/box.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/game/box.tm') diff --git a/examples/game/box.tm b/examples/game/box.tm index 88713154..acff269e 100644 --- a/examples/game/box.tm +++ b/examples/game/box.tm @@ -5,5 +5,5 @@ use ./world.tm use ./color.tm struct Box(pos:Vec2, size=Vec2(50, 50), color=Color.GRAY, blocking=yes): - func draw(b:&Box): + func draw(b:Box): b.color:draw_rectangle(b.pos, b.size) -- cgit v1.2.3