diff options
| author | jussi | 2023-10-29 19:45:18 +0200 |
|---|---|---|
| committer | jussi | 2023-10-29 19:45:18 +0200 |
| commit | 992310fb90832ddf493ec33f1099dbbf3e0987f3 (patch) | |
| tree | 5eb19defdf61ce7c091756ea07686d9251412440 /examples/pong | |
| parent | fcd2d2d8b583f6a11a9ce32a75da8e18c8c88d32 (diff) | |
| download | reilua-enhanced-992310fb90832ddf493ec33f1099dbbf3e0987f3.tar.gz reilua-enhanced-992310fb90832ddf493ec33f1099dbbf3e0987f3.tar.bz2 reilua-enhanced-992310fb90832ddf493ec33f1099dbbf3e0987f3.zip | |
Fixed examples.
Diffstat (limited to 'examples/pong')
| -rw-r--r-- | examples/pong/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pong/main.lua b/examples/pong/main.lua index cc980ea..80c4346 100644 --- a/examples/pong/main.lua +++ b/examples/pong/main.lua @@ -121,7 +121,7 @@ function RL.draw() RL.DrawCircle( ball.pos, ball.radius, RL.WHITE ) -- Draw scire - RL.DrawText( 0, playerLeft.score, { 50, 10 }, 40, 2, RL.WHITE ) - local rightTextSize = RL.MeasureText( 0, playerRight.score, 40, 2 ) - RL.DrawText( 0, playerRight.score, { winSize[1] - 50 - rightTextSize[1], 10 }, 40, 2, RL.WHITE ) + RL.DrawText( RL.defaultFont, playerLeft.score, { 50, 10 }, 40, 2, RL.WHITE ) + local rightTextSize = RL.MeasureText( RL.defaultFont, playerRight.score, 40, 2 ) + RL.DrawText( RL.defaultFont, playerRight.score, { winSize[1] - 50 - rightTextSize[1], 10 }, 40, 2, RL.WHITE ) end |
