Refactor character and enemy AI movement logic; implement delta time for smoother updates and replace object (a reserved keyword) with prop.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ class Menu < Scene
|
||||
@last_mouse_pos = nil
|
||||
end
|
||||
|
||||
def update
|
||||
def update(_dt)
|
||||
pos = $bus.get(:mouse_pos)
|
||||
return unless pos
|
||||
|
||||
|
||||
Reference in New Issue
Block a user