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/automation_events/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/automation_events') diff --git a/examples/automation_events/main.lua b/examples/automation_events/main.lua index 33589a4..3425ac6 100644 --- a/examples/automation_events/main.lua +++ b/examples/automation_events/main.lua @@ -23,7 +23,7 @@ function RL.init() end function RL.update( delta ) - local moveDir = Vec2:new() + local moveDir = Vec2:new( 0, 0 ) if RL.IsKeyDown( RL.KEY_RIGHT ) then moveDir.x = 1 -- cgit v1.2.3