diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-11 18:02:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-11 18:02:13 -0400 |
| commit | de0e565d00e92715d415a9ab09d8f7651bfabc36 (patch) | |
| tree | 5523d775ff95b9c88ae8d599e82276e4f19d81db /examples/game/player.tm | |
| parent | 1f6e586b2a3fe7f8ca32ce95659032bafef0ad24 (diff) | |
Fixes for integer truncation
Diffstat (limited to 'examples/game/player.tm')
| -rw-r--r-- | examples/game/player.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/game/player.tm b/examples/game/player.tm index dac2508a..f73dcf6a 100644 --- a/examples/game/player.tm +++ b/examples/game/player.tm @@ -25,4 +25,4 @@ struct Player(pos,prev_pos:Vector2): p.prev_pos, p.pos = p.pos, p.pos + World.DT*vel func draw(p:Player): - DrawRectangleRec(Rectangle(p.pos.x, p.pos.y, Player.SIZE.x, Player.SIZE.y), Player.COLOR) + DrawRectangleV(p.pos, Player.SIZE, Player.COLOR) |
