diff options
author | Aki <nthirtyone@gmail.com> | 2016-07-31 09:00:57 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-07-31 09:00:57 +0200 |
commit | 95751a8ba1a2881972ab50fabc72526ee989a29f (patch) | |
tree | bf126a8a7c4e42f238ab5178d9bb01e8d67329f4 /main.lua | |
parent | d38941d363842f547ba3cd681ca22f2014f1ba49 (diff) | |
download | roflnauts-95751a8ba1a2881972ab50fabc72526ee989a29f.zip roflnauts-95751a8ba1a2881972ab50fabc72526ee989a29f.tar.gz roflnauts-95751a8ba1a2881972ab50fabc72526ee989a29f.tar.bz2 |
Map restart
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -106,7 +106,12 @@ function love.keypressed(key) love.event.quit() end if key == "f6" and debug then - local new = World:new("default", {"link", Controllers[1]}, {"weed", Controllers[2]}) + local map = Scene:getMapName() + local nauts = {} + for _,naut in pairs(Scene:getNautsAll()) do + table.insert(nauts, {naut.name, naut.controller}) + end + local new = World:new(map, nauts) Scene:delete() changeScene(new) end |