diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-13 04:37:07 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-13 04:37:07 +0200 |
commit | ed16d208863944f64ce42298132597345cb749bb (patch) | |
tree | 7b026657916a1499395d5e4d9d4ca665a9ff666e /not/World.lua | |
parent | d6ad468c42ba9dcd8697109ac8e30c4ccdaa7c32 (diff) | |
download | roflnauts-ed16d208863944f64ce42298132597345cb749bb.zip roflnauts-ed16d208863944f64ce42298132597345cb749bb.tar.gz roflnauts-ed16d208863944f64ce42298132597345cb749bb.tar.bz2 |
Clouds are now counted, their number is limited and can be configured
Diffstat (limited to 'not/World.lua')
-rw-r--r-- | not/World.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/not/World.lua b/not/World.lua index e0febb7..853d75b 100644 --- a/not/World.lua +++ b/not/World.lua @@ -101,7 +101,9 @@ function World:buildMap () if type(animations) == "string" then animations = require("config.animations." .. animations) end - self:insertEntity(CloudGenerator(op.clouds, animations, self)):run(6, true) + local cg = CloudGenerator(op.clouds, animations, op.count, self) + self:insertEntity(cg) + cg:run(op.count, true) end end end |