diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-08 20:25:06 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-08 20:25:06 -0400 |
| commit | f33b7048d7f1255a4f9c04057340f2c71d6fb982 (patch) | |
| tree | 8b7ea09409eef75696ba60a8ff5f60b8af1ec83d /examples/game/box.tm | |
| parent | 9f7f4eb858d723b0d4fc954b1575feb05f0f8134 (diff) | |
Turn into map
Diffstat (limited to 'examples/game/box.tm')
| -rw-r--r-- | examples/game/box.tm | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
