diff options
Diffstat (limited to 'examples/platformer/main.lua')
| -rw-r--r-- | examples/platformer/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) |
