From ebe12a65c07bccfbc704667c88d8125be33067cf Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 29 Jan 2023 02:59:50 +0000 Subject: camera stuff + vastly optimise hex drawing --- common/chunk.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/chunk.lua') diff --git a/common/chunk.lua b/common/chunk.lua index 38cdaf0..432e37b 100644 --- a/common/chunk.lua +++ b/common/chunk.lua @@ -22,6 +22,11 @@ function Chunk.make() return setmetatable({tiles=tiles},Chunk) end +function Chunk.tile_at_offset(self,hoffs) + if not(0<=hoffs.q and 0<=hoffs.r and hoffs.q