diff options
| author | jussi | 2023-07-02 17:44:24 +0300 |
|---|---|---|
| committer | jussi | 2023-07-02 17:44:24 +0300 |
| commit | 8ad725429292be22086d51df285907742be7a91a (patch) | |
| tree | 41c13c146bb3f3f82ade36c2518d105a72b2a5dc /examples/pong_vec/main.lua | |
| parent | 0e77452a1b4f894e342dae5583f8b02f915e8f6d (diff) | |
| download | reilua-enhanced-8ad725429292be22086d51df285907742be7a91a.tar.gz reilua-enhanced-8ad725429292be22086d51df285907742be7a91a.tar.bz2 reilua-enhanced-8ad725429292be22086d51df285907742be7a91a.zip | |
LuaJIT compatibility.
Diffstat (limited to 'examples/pong_vec/main.lua')
| -rw-r--r-- | examples/pong_vec/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pong_vec/main.lua b/examples/pong_vec/main.lua index 2b81452..cf8e86c 100644 --- a/examples/pong_vec/main.lua +++ b/examples/pong_vec/main.lua @@ -126,7 +126,7 @@ function RL.draw() RL.DrawCircle( ball.pos, ball.radius, RL.WHITE ) -- Draw score. - RL.DrawText( 0, playerLeft.score, { 50, 10 }, 40, 2, RL.WHITE ) - local rightTextSize = Vec2:new( RL.MeasureText( 0, playerRight.score, 40, 2 ) ) - RL.DrawText( 0, playerRight.score, { winSize.x - 50 - rightTextSize.x, 10 }, 40, 2, RL.WHITE ) + RL.DrawText( 0, tostring( playerLeft.score ), { 50, 10 }, 40, 2, RL.WHITE ) + local rightTextSize = Vec2:new( RL.MeasureText( 0, tostring( playerRight.score ), 40, 2 ) ) + RL.DrawText( 0, tostring( playerRight.score ), { winSize.x - 50 - rightTextSize.x, 10 }, 40, 2, RL.WHITE ) end |
