summaryrefslogtreecommitdiffhomepage
path: root/world.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-21 01:58:11 +0200
committerAki <nthirtyone@gmail.com>2016-05-21 01:58:11 +0200
commit404c2a1cf2183d8e19f8e26f6c2197e45a0dc92c (patch)
tree453acde92925cdd245dadbfdcc2f7e97a512ba79 /world.lua
parentba4fcd821ae022da3936b8f6149afbefa41603cb (diff)
downloadroflnauts-404c2a1cf2183d8e19f8e26f6c2197e45a0dc92c.zip
roflnauts-404c2a1cf2183d8e19f8e26f6c2197e45a0dc92c.tar.gz
roflnauts-404c2a1cf2183d8e19f8e26f6c2197e45a0dc92c.tar.bz2
Minor tweaks
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/world.lua b/world.lua
index 75e0439..56b67be 100644
--- a/world.lua
+++ b/world.lua
@@ -78,7 +78,7 @@ function World:randomizeCloud(outside)
else
x = math.random(-200,250)
end
- y = math.random(0, 160)
+ y = math.random(-20, 170)
t = math.random(1,3)
v = math.random(8,18)
self:createCloud(x, y, t, v)
@@ -104,7 +104,7 @@ function World:update(dt)
local n = table.getn(self.Clouds)
self.clouds_delay = self.clouds_delay - dt
if self.clouds_delay < 0 and
- n < 12
+ n < 14
then
self:randomizeCloud()
self.clouds_delay = self.clouds_delay + self.clouds_initial
@@ -175,8 +175,8 @@ function World:draw()
-- 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)
+ if _ < 3 then y = 180-33 end
+ naut:drawHUD(1+(_%2)*(290-34), y, scale)
end
end