From 9e41a8be14a3b792b3ebbac4e8ef98dc89898664 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 21 May 2016 01:44:51 +0200 Subject: HUD placement --- world.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'world.lua') diff --git a/world.lua b/world.lua index 6a7d132..75e0439 100644 --- a/world.lua +++ b/world.lua @@ -171,7 +171,12 @@ function World:draw() -- Draw HUDs for _,naut in pairs(self.Nauts) do - naut:drawHUD(1, 1+(_-1)*33, scale) + -- I have no idea where to place them T_T + -- let's do: bottom-left, bottom-right, top-left, top-right + -- equation that gives 0 with 1,2 and 1 with 3,4 -- fffs lets make statement + local y = 1 + if _ < 3 then y = 147 end + naut:drawHUD(1+(_%2)*256, y, scale) end end -- cgit v1.1