summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/basic_lighting/main.lua2
-rw-r--r--examples/bunnymark/main.lua4
-rw-r--r--examples/events/main.lua2
-rw-r--r--examples/free_camera3d/main.lua2
-rw-r--r--examples/iqm_test/main.lua4
-rw-r--r--examples/pong/main.lua4
-rw-r--r--examples/resources/lib/utillib.lua2
-rw-r--r--examples/snake/main.lua2
-rw-r--r--examples/window/main.lua2
9 files changed, 12 insertions, 12 deletions
diff --git a/examples/basic_lighting/main.lua b/examples/basic_lighting/main.lua
index 0d7b77c..29104f2 100644
--- a/examples/basic_lighting/main.lua
+++ b/examples/basic_lighting/main.lua
@@ -136,5 +136,5 @@ function RL.draw()
camera:endMode3D()
- RL.DrawText( RL.GetFontDefault(), "Use keys [Y][R][G][B] to toggle lights", { 10, 10 }, 20, 4, RL.DARKGRAY )
+ RL.DrawText( "Use keys [Y][R][G][B] to toggle lights", { 10, 10 }, 20, RL.DARKGRAY )
end
diff --git a/examples/bunnymark/main.lua b/examples/bunnymark/main.lua
index 03f53ad..7b1820e 100644
--- a/examples/bunnymark/main.lua
+++ b/examples/bunnymark/main.lua
@@ -83,7 +83,7 @@ function RL.draw()
end
RL.DrawRectangle( { 0, 0, screenWidth, 40 }, RL.BLACK)
- RL.DrawText( RL.GetFontDefault(), "bunnies: " .. #bunnies, { 120, 10 }, 20, 2, RL.GREEN )
- RL.DrawText( RL.GetFontDefault(), "batched draw calls: " .. math.ceil( 1 + #bunnies / MAX_BATCH_ELEMENTS ), { 320, 10 }, 20, 2, RL.RED )
+ RL.DrawText( "bunnies: " .. #bunnies, { 120, 10 }, 20, RL.GREEN )
+ RL.DrawText( "batched draw calls: " .. math.ceil( 1 + #bunnies / MAX_BATCH_ELEMENTS ), { 320, 10 }, 20, RL.RED )
RL.DrawFPS( { 10, 10 } )
end
diff --git a/examples/events/main.lua b/examples/events/main.lua
index 052edc1..3a042f1 100644
--- a/examples/events/main.lua
+++ b/examples/events/main.lua
@@ -100,5 +100,5 @@ function RL.draw()
RL.ClearBackground( RL.RED )
end
- RL.DrawText( RL.GetFontDefault(), text, textPos, 20, 2, RL.BLACK )
+ RL.DrawText( text, textPos, 20, RL.BLACK )
end
diff --git a/examples/free_camera3d/main.lua b/examples/free_camera3d/main.lua
index 4881cc5..30cee08 100644
--- a/examples/free_camera3d/main.lua
+++ b/examples/free_camera3d/main.lua
@@ -69,5 +69,5 @@ function RL.draw()
text = text.."\nPress T to toggle target visible.\nVisible: "..tostring( targetVisible )
-- RL.DrawText( RL.defaultFont, text, { 16, 16 }, 30, 4, RL.WHITE )
- RL.DrawText( RL.GetFontDefault(), text, { 16, 16 }, 30, 4, RL.WHITE )
+ RL.DrawText( text, { 16, 16 }, 30, RL.WHITE )
end
diff --git a/examples/iqm_test/main.lua b/examples/iqm_test/main.lua
index 22341a4..ef1549c 100644
--- a/examples/iqm_test/main.lua
+++ b/examples/iqm_test/main.lua
@@ -80,10 +80,10 @@ function RL.draw()
RL.DrawModelEx( model, { 0, 0, 0 }, { 1.0, 0.0, 0.0 }, -90.0, { 1.0, 1.0, 1.0 }, RL.WHITE )
RL.EndMode3D()
- RL.DrawText( RL.GetFontDefault(),
+ RL.DrawText(
"Enter: Change animation\
Space: Play animation\
Up arrow: Inreace animation speed\
Down arrow: Decreace animation speed",
- { 10, 10 }, 30, 5, RL.WHITE )
+ { 10, 10 }, 30, RL.WHITE )
end
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
diff --git a/examples/resources/lib/utillib.lua b/examples/resources/lib/utillib.lua
index ed4e787..94e33f9 100644
--- a/examples/resources/lib/utillib.lua
+++ b/examples/resources/lib/utillib.lua
@@ -131,7 +131,7 @@ function utillib.toBoolean( v )
return false
end
-function utillib.boo2Number( bool )
+function utillib.bool2Number( bool )
return bool and 1 or 0
end
diff --git a/examples/snake/main.lua b/examples/snake/main.lua
index 5aa22b3..4ae88d1 100644
--- a/examples/snake/main.lua
+++ b/examples/snake/main.lua
@@ -213,7 +213,7 @@ function RL.draw()
drawApple()
if gameState == STATE.OVER then
- RL.DrawText( RL.GetFontDefault(), "Press Enter to\nrestart", { 10, 10 }, 10, 2, RL.WHITE )
+ RL.DrawText( "Press Enter to\nrestart", { 10, 10 }, 10, RL.WHITE )
end
RL.EndTextureMode()
diff --git a/examples/window/main.lua b/examples/window/main.lua
index c6161e9..3e10f34 100644
--- a/examples/window/main.lua
+++ b/examples/window/main.lua
@@ -24,5 +24,5 @@ end
function RL.draw()
RL.ClearBackground( RL.RAYWHITE )
- RL.DrawText( RL.GetFontDefault(), text, textPos, 20, 2, textColor )
+ RL.DrawText( text, textPos, 20, textColor )
end