summaryrefslogtreecommitdiffhomepage
path: root/not/Hero.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/Hero.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/Hero.lua')
-rw-r--r--not/Hero.lua13
1 files changed, 1 insertions, 12 deletions
diff --git a/not/Hero.lua b/not/Hero.lua
index 7b968ab..a0758ee 100644
--- a/not/Hero.lua
+++ b/not/Hero.lua
@@ -1,5 +1,5 @@
--- `Hero`
--- Hero (naut) entity that exists in a game world.
+-- Hero (often referred to as: "naut") entity that exists in a game world.
-- Collision category: [2]
Hero = {
-- General and physics
@@ -22,8 +22,6 @@ Hero = {
isJumping = false,
jumpTimer = 0.16,
jumpCounter = 2,
- -- Keys
- controlset = nil,
-- Statics
portrait_sprite = nil,
portrait_frame = nil,
@@ -73,15 +71,6 @@ function Hero:init (name, world, x, y)
self:createEffect("respawn")
end
--- Control set managment
--- TODO: move these two to `not.Player`.
-function Hero:assignControlSet (set)
- self.controlset = set
-end
-function Hero:getControlSet ()
- return self.controlset
-end
-
-- Update callback of `Hero`
-- TODO: Explode this function (method, kek), move controler-related parts to `not.Player`, physics parts to `not.PhysicalBody`.
function Hero:update (dt)