diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-21 01:44:51 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-21 01:44:51 +0200 |
commit | 9e41a8be14a3b792b3ebbac4e8ef98dc89898664 (patch) | |
tree | ed537def637df16dd57c102d311431e841f3bebb | |
parent | 42c1711ac6fde9c25d36981d4f8bcc451083fe25 (diff) | |
download | roflnauts-9e41a8be14a3b792b3ebbac4e8ef98dc89898664.zip roflnauts-9e41a8be14a3b792b3ebbac4e8ef98dc89898664.tar.gz roflnauts-9e41a8be14a3b792b3ebbac4e8ef98dc89898664.tar.bz2 |
HUD placement
-rw-r--r-- | world.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |