summaryrefslogtreecommitdiffhomepage
path: root/world.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-21 20:35:47 +0200
committerAki <nthirtyone@gmail.com>2016-05-21 20:35:47 +0200
commit482797c1feab2b238822202593c1964c648d4198 (patch)
tree0fbbeb1301ad8422090858ffc49abea7142c2f07 /world.lua
parent4b63616195fd1910b7aa5d46b6489c9bdd054fa1 (diff)
downloadroflnauts-482797c1feab2b238822202593c1964c648d4198.zip
roflnauts-482797c1feab2b238822202593c1964c648d4198.tar.gz
roflnauts-482797c1feab2b238822202593c1964c648d4198.tar.bz2
HUD combo/lives
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/world.lua b/world.lua
index 56b67be..d896f18 100644
--- a/world.lua
+++ b/world.lua
@@ -173,10 +173,9 @@ 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
- -- equation that gives 0 with 1,2 and 1 with 3,4 -- fffs lets make statement
- local y = 1
- if _ < 3 then y = 180-33 end
- naut:drawHUD(1+(_%2)*(290-34), y, scale)
+ local y, e = 1, 1
+ if _ < 3 then y, e = 180-33, 0 end
+ naut:drawHUD(1+(_%2)*(290-34), y, scale, e)
end
end