summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-04-04 14:30:15 +0200
committerAki <nthirtyone@gmail.com>2017-04-04 14:30:15 +0200
commit5c51b6e4d39bc55887f94dc65e58fd1765d86c1c (patch)
tree6695789c539f3ef748a6180e06211e6b01fab72a /not/World.lua
parent10db7a170cf28db93740448bba76f7a9cd452664 (diff)
downloadroflnauts-5c51b6e4d39bc55887f94dc65e58fd1765d86c1c.zip
roflnauts-5c51b6e4d39bc55887f94dc65e58fd1765d86c1c.tar.gz
roflnauts-5c51b6e4d39bc55887f94dc65e58fd1765d86c1c.tar.bz2
First steps to move player-input logics into Player from Hero
Diffstat (limited to 'not/World.lua')
-rw-r--r--not/World.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/not/World.lua b/not/World.lua
index b7bd48c..44923bb 100644
--- a/not/World.lua
+++ b/not/World.lua
@@ -5,7 +5,7 @@
-- WHOLE CODE HAS FLAG OF "need a cleanup"
require "not.Platform"
-require "not.Hero"
+require "not.Player"
require "not.Cloud"
require "not.Effect"
require "not.Decoration"
@@ -136,9 +136,9 @@ end
-- Add new naut to the world
-- TODO: separate two methods for `not.Hero` and `not.Player`.
--- TODO: follow new parameters in `not.Player.new` based on `not.Player.init`.
+-- TODO: follow new parameters in `not.(Player/Hero).new` based on `not.(Player/Hero).init`.
function World:createNaut(x, y, name)
- local naut = Hero:new(self, self.world, x, y, name)
+ local naut = Player:new(self, self.world, x, y, name)
table.insert(self.Nauts, naut)
return naut
end