diff options
| author | jussi | 2023-10-31 15:24:11 +0200 |
|---|---|---|
| committer | jussi | 2023-10-31 15:24:11 +0200 |
| commit | be39fd96344ee1f4f85ac5c63b4e5f9daf6e5171 (patch) | |
| tree | f0612052c4fe78ad2b6c2e7e8fc695a18d1d961e /examples/pong | |
| parent | d351b7b025f95983e49afaecb2fafef7802996a0 (diff) | |
| download | reilua-enhanced-be39fd96344ee1f4f85ac5c63b4e5f9daf6e5171.tar.gz reilua-enhanced-be39fd96344ee1f4f85ac5c63b4e5f9daf6e5171.tar.bz2 reilua-enhanced-be39fd96344ee1f4f85ac5c63b4e5f9daf6e5171.zip | |
GlyphInfo type. Some new text and core functions.
Diffstat (limited to 'examples/pong')
| -rw-r--r-- | examples/pong/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pong/main.lua b/examples/pong/main.lua index 4dd3462..635b355 100644 --- a/examples/pong/main.lua +++ b/examples/pong/main.lua @@ -126,7 +126,7 @@ function RL.draw() RL.DrawCircle( ball.pos, ball.radius, RL.WHITE ) -- Draw score. - RL.DrawText( RL.GetFontDefault(), tostring( playerLeft.score ), { 50, 10 }, 40, 2, RL.WHITE ) + RL.DrawText( tostring( playerLeft.score ), { 50, 10 }, 40, RL.WHITE ) local rightTextSize = Vec2:new( RL.MeasureText( RL.GetFontDefault(), tostring( playerRight.score ), 40, 2 ) ) - RL.DrawText( RL.GetFontDefault(), tostring( playerRight.score ), { winSize.x - 50 - rightTextSize.x, 10 }, 40, 2, RL.WHITE ) + RL.DrawText( tostring( playerRight.score ), { winSize.x - 50 - rightTextSize.x, 10 }, 40, RL.WHITE ) end |
