Object libraries like Vector2 optimizations.

This commit is contained in:
jussi
2024-04-17 00:35:58 +03:00
parent 41b6739824
commit 70b40f6782
31 changed files with 527 additions and 370 deletions

View File

@@ -21,7 +21,7 @@ function RL.init()
end
function RL.update( delta )
local mousePosition = Vec2:new( RL.GetMousePosition() )
local mousePosition = Vec2:newT( RL.GetMousePosition() )
-- Resize the n-patch based on mouse position
dstRec.width = mousePosition.x - dstRec.x;