From 70b40f67824b3d612235c382aa83821c054fa51e Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 17 Apr 2024 00:35:58 +0300 Subject: Object libraries like Vector2 optimizations. --- examples/platformer/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/platformer/main.lua') diff --git a/examples/platformer/main.lua b/examples/platformer/main.lua index 878311f..6c8e0c6 100644 --- a/examples/platformer/main.lua +++ b/examples/platformer/main.lua @@ -81,8 +81,8 @@ local function createMap() end function RL.init() - local monitorPos = Vec2:new( RL.GetMonitorPosition( monitor ) ) - local monitorSize = Vec2:new( RL.GetMonitorSize( monitor ) ) + local monitorPos = Vec2:newT( RL.GetMonitorPosition( monitor ) ) + local monitorSize = Vec2:newT( RL.GetMonitorSize( monitor ) ) RL.SetWindowTitle( "Platformer" ) RL.SetWindowState( RL.FLAG_WINDOW_RESIZABLE ) @@ -223,7 +223,7 @@ end function RL.update( delta ) if RL.IsWindowResized() then - winSize:set( RL.GetScreenSize() ) + winSize:setT( RL.GetScreenSize() ) end playerMovement( delta ) -- cgit v1.2.3