From c95593af3e9a8e667ac2ea6adb48192881c1076f Mon Sep 17 00:00:00 2001 From: Hyeonung Baek Date: Sat, 4 Jan 2025 13:27:27 +0900 Subject: [PATCH] Remove unused function room.edge_position --- room.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/room.lua b/room.lua index 1a1d2c0..e2ed0c7 100644 --- a/room.lua +++ b/room.lua @@ -12,21 +12,6 @@ local room = entity:from{ objects = {}, } -function edge_position(e) - local wd = screen.width - e.width - local hd = screen.height - e.height - - local t = { - ['left'] = { 0, hd/2 }, - ['right'] = { wd, hd/2 }, - ['up'] = { wd/2, 0 }, - ['down'] = { wd/2, hd }, - } - - local p = t[e.dir] - return p[1], p[2] -end - function room:insert(obj) table.insert(self.objects, obj) obj.idx = #self.objects