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