diff options
| author | jussi | 2024-04-17 00:35:58 +0300 |
|---|---|---|
| committer | jussi | 2024-04-17 00:35:58 +0300 |
| commit | 70b40f67824b3d612235c382aa83821c054fa51e (patch) | |
| tree | 5d594cc457d6fed8af87e31977a0b9352677a4f5 /examples/n-patches/main.lua | |
| parent | 41b67398247d9031aed4ca6e3ffd6799ec8b1bca (diff) | |
| download | reilua-enhanced-70b40f67824b3d612235c382aa83821c054fa51e.tar.gz reilua-enhanced-70b40f67824b3d612235c382aa83821c054fa51e.tar.bz2 reilua-enhanced-70b40f67824b3d612235c382aa83821c054fa51e.zip | |
Object libraries like Vector2 optimizations.
Diffstat (limited to 'examples/n-patches/main.lua')
| -rw-r--r-- | examples/n-patches/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/n-patches/main.lua b/examples/n-patches/main.lua index aba3d2c..c45b828 100644 --- a/examples/n-patches/main.lua +++ b/examples/n-patches/main.lua @@ -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; |
