summaryrefslogtreecommitdiffhomepage
path: root/not/Hero.lua
diff options
context:
space:
mode:
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)