diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-27 17:25:32 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-27 17:25:32 +0200 |
commit | 50fc48bf4e1de8382513da390eeece796f18926e (patch) | |
tree | c8f371e720dd632e89e69c404f18cda21b0046f4 /world.lua | |
parent | 8adcd1d14ee076d7a2db6303d0b5b938977d356b (diff) | |
download | roflnauts-50fc48bf4e1de8382513da390eeece796f18926e.zip roflnauts-50fc48bf4e1de8382513da390eeece796f18926e.tar.gz roflnauts-50fc48bf4e1de8382513da390eeece796f18926e.tar.bz2 |
HUD for different resolutions
Diffstat (limited to 'world.lua')
-rw-r--r-- | world.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -225,9 +225,10 @@ function World:draw() for _,naut in pairs(self.Nauts) do -- I have no idea where to place them T_T -- let's do: bottom-left, bottom-right, top-left, top-right + local w, h = love.graphics.getWidth()/scale, love.graphics.getHeight()/scale local y, e = 1, 1 - if _ < 3 then y, e = 180-33, 0 end - naut:drawHUD(1+(_%2)*(290-34), y, scale, e) + if _ < 3 then y, e = h-33, 0 end + naut:drawHUD(1+(_%2)*(w-34), y, scale, e) end end |