From eb7ce44fa1084c130ea6039a0b46f04c42652b07 Mon Sep 17 00:00:00 2001 From: yuki Date: Tue, 11 Nov 2025 04:55:25 -0300 Subject: [PATCH] rename addPhysicsWorld (has nothing to do with physics) --- obj/Area.lua | 4 ++-- rooms/Stage.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/obj/Area.lua b/obj/Area.lua index db309d5..68c8522 100644 --- a/obj/Area.lua +++ b/obj/Area.lua @@ -55,9 +55,9 @@ function Area:addGameObject(game_object_type, x, y, opts) return game_object end ----Initializes HC physics as a world +---Initializes HC collision manager as a world ---@param cell_size number|nil -function Area:addPhysicsWorld(cell_size) +function Area:addCollisionManager(cell_size) self.world = HC(cell_size or 100) end diff --git a/rooms/Stage.lua b/rooms/Stage.lua index 5f325fd..20102dd 100644 --- a/rooms/Stage.lua +++ b/rooms/Stage.lua @@ -3,7 +3,7 @@ local Stage = Room:extend() function Stage:new() Stage.super.new(self) - self.area:addPhysicsWorld() + self.area:addCollisionManager() self.area:addGameObject('Player', gw/2, gh/2) end