From 992310fb90832ddf493ec33f1099dbbf3e0987f3 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 29 Oct 2023 19:45:18 +0200 Subject: Fixed examples. --- examples/pong/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/pong') 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 -- cgit v1.2.3