summaryrefslogtreecommitdiffhomepage
path: root/not/Hero.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-03-19 03:29:32 +0100
committerAki <nthirtyone@gmail.com>2017-03-19 03:29:32 +0100
commit2e352657813b37d17c2215b85189f18a50c099f9 (patch)
tree8ecbf2a0be065a14e0f679b10987e8b278afb882 /not/Hero.lua
parent19e6728c339cb029ab9a6b7762d60abe790b772a (diff)
downloadroflnauts-2e352657813b37d17c2215b85189f18a50c099f9.zip
roflnauts-2e352657813b37d17c2215b85189f18a50c099f9.tar.gz
roflnauts-2e352657813b37d17c2215b85189f18a50c099f9.tar.bz2
Comments, todos, pretty useless
Diffstat (limited to 'not/Hero.lua')
-rw-r--r--not/Hero.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/not/Hero.lua b/not/Hero.lua
index bd8c55c..a6facd9 100644
--- a/not/Hero.lua
+++ b/not/Hero.lua
@@ -83,6 +83,7 @@ function Hero:getControlSet ()
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)
-- hotfix? for destroyed bodies
if self.body:isDestroyed() then return end
@@ -280,6 +281,7 @@ function Hero:controlreleased (set, action, key)
end
-- Draw of `Hero`
+-- TODO: see `not.PhysicalBody.draw` and `not.Sprite.draw`.
function Hero:draw (offset_x, offset_y, scale, debug)
-- draw only alive
if not self.alive then return end