diff options
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 03294a0a..b95fd895 100644 --- a/examples/game/box.tm +++ b/examples/game/box.tm @@ -4,4 +4,4 @@ use ./raylib.tm struct Box(pos:Vector2, size=Vector2(50, 50), color=Color(0x80,0x80,0x80), blocking=yes): func draw(b:Box): - DrawRectangleRec(Rectangle(b.pos.x, b.pos.y, b.size.x, b.size.y), b.color) + DrawRectangleV(b.pos, b.size, b.color) |
